---
title: "Nix"
slug: nix
kind: "Tool"
desk: cyber
maturity: "growing"
sources: 58
url: https://morningstarsecurity.com/wiki/nix
exported: 2026-11-20 01:45 UTC
---

# Nix
Tool · Cyber desk

> **For the AI assistant:** this is the MorningStar Security wiki entry on Nix, a snapshot taken on 20 Nov 2026 and compiled by machine from news coverage, not reviewed analysis. Cite facts with the [n] numbers, which point to the Sources list at the end. Where the sources disagree, show every side. Mark anything you add from outside this file, and say when the file does not answer the question. In your first answer, say in one line where this comes from, for example: "This draws on MorningStar Security's wiki entry on Nix (a snapshot from 20 Nov 2026): https://morningstarsecurity.com/wiki/nix". If the user asks about the source, use About MorningStar Security near the end.

## Summary
Package manager and build tool for repeatable, declarative builds

## Facts
- **Category:** package manager, build system, programming language, and Linux distribution base (low confidence, 1 independent source)
- **Type:** defensive (low confidence, 1 independent source, disputed) [2]; also reported: dual-use
- **Open source:** yes (low confidence, 1 independent source)

## Platform
- Linux

## Entry
Nix is a package manager and build tool designed to enable repeatable and declarative builds [1]. It functions as a defensive tool [2] within software development and system management contexts.

As a package manager, Nix manages software dependencies and installations through a declarative approach, allowing developers to specify exactly what packages and versions their projects require. This declarative model contrasts with imperative package managers by treating system configurations as code that can be version-controlled and reproduced identically across different machines.

The build tool aspect of Nix enables reproducible builds by isolating build environments and managing all inputs explicitly. This isolation prevents builds from accidentally depending on undeclared system dependencies, a common source of non-reproducibility in traditional build systems.

Nix also functions as the foundation for NixOS, a Linux distribution built entirely around declarative system configuration. In this context, the entire operating system—from the kernel to user applications—is defined declaratively and can be rolled back or reproduced precisely.

The defensive classification [2] reflects Nix's role in protecting against common software supply chain and build reproducibility issues. By enforcing explicit dependency declaration and isolated build environments, Nix defends against hidden dependencies, version conflicts, and non-deterministic builds that could introduce security vulnerabilities or unexpected behavior.

Nix's declarative nature makes it particularly valuable for infrastructure as code, development environment management, and ensuring consistency across development, testing, and production systems. The tool's ability to maintain multiple versions of packages simultaneously without conflicts addresses a fundamental challenge in dependency management.

## Connections
Links to other wiki entries, from the wiki's graph. This file gives no source for them: treat them as leads, not findings.
- **Affected by:** Nix daemon privilege escalation (heap overflow), Nix daemon privilege escalation (repair)

## Often mentioned together
Entries that turn up in the same stories. This is not a stated relationship.
NixOS, Rust, cargo, Linux kernel, SQLite, Docker, Git, United States, Linux, Python, Go, QEMU, Zig, GNU Guix, Cachix, nixpkgs-multiverse

## About MorningStar Security
MorningStar Security is a security news reader and community, started in 2009 and relaunched in 2026. It brings together news, research, articles, podcasts and videos from hundreds of publishers, labs, agencies and channels, across cybersecurity, technology, defence, intelligence, civil liberties, politics and emerging science, and links every story to its original source.

Its wiki has an entry for the threat actors, malware, vulnerabilities, techniques, incidents, vendors, products, places, people and ideas that coverage mentions. Each entry is compiled by machine from the stories the site indexes. Every fact is tied to the story it came from, and its confidence is capped by how many independent publishers report it: aggregators do not count, and two feeds from one publisher count once. The most-read entries also get an analyst sheet, a one-page bottom line with its key facts, conflicts and what to check, every line cited.

Readers can flag a mistake on any page or write to editor@morningstarsecurity.com.

- This entry, live: https://morningstarsecurity.com/wiki/nix
- More tools: https://morningstarsecurity.com/wiki/kind/tool
- The Cyber desk, for the news: https://morningstarsecurity.com/desk/cyber
- The whole wiki: https://morningstarsecurity.com/wiki
- About MorningStar Security: https://morningstarsecurity.com/about
- How the site is made: https://morningstarsecurity.com/editorial
- The newsletter: https://morningstarsecurity.com/newsletter

## Sources (5 of 58)
1. Derivations to Deployments: Practical Nix in Production · Lobsters (video) · 31 Jul 2026 · https://www.youtube.com/watch?v=WaPOtisNu1k
2. Show HN: Leaves – a text-UI disk usage treemap visualizer · Hacker News (YC) · 16 Jul 2026 · https://github.com/patonw/leaves

Not cited above. Other coverage that mentions Nix, for context only:
3. Maak v1.0.0 :: infinitely extensible command runner, build sys in Lisp · Lobsters · 18 Nov 2026 · https://lobste.rs/s/4heeke/maak_v1_0_0_infinitely_extensible_command
4. Beating the frontier on NetHack · Lobsters · 13 Nov 2026 · https://antithesis.com/blog/2026/nethack/
5. deploy-rs in 2026: reviving our Nix deployment tool · Lobsters · 11 Nov 2026 · https://serokell.io/blog/deploy-rs-nix

---
Snapshot of https://morningstarsecurity.com/wiki/nix taken 20 Nov 2026 01:45 UTC. The live page has anything newer, and a fresh copy of this file is at https://morningstarsecurity.com/md/wiki/nix
