NixOS: the Linux distribution where the whole system is one file
NixOS describes a laptop or a fleet of servers in a single text file, and every change becomes a bootable generation you can roll back from. The new 26.11 release adds automatic recovery from a bad update.

On this page
In brief
- NixOS describes the entire system in one declarative file, configuration.nix, and every rebuild creates a new bootable generation.
- Packages live in /nix/store under hash-named paths, so versions coexist and an interrupted upgrade leaves the machine bootable.
- Flakes pin the exact nixpkgs revision in a lockfile, but remain experimental in upstream Nix even though most users rely on them.
- The 2024 governance crisis ended with a written constitution, an elected seven-seat Steering Committee, and the Lix fork as a supported option.
- Version 26.11 'Zokor', released November 28, adds Nix 2.35, GNOME 51, post-quantum SSH host keys, and automatic recovery from bad generations.
Every Linux user has a story about an update. The package manager runs, something in the stack shifts, and the machine that booted fine yesterday now drops to a black screen or a login loop. The fix is usually a long evening of undoing: finding the changed package, downgrading it by hand, hoping the configuration files still match the older version.
NixOS is built around the idea that the evening should not exist. The whole operating system is described in a single text file, and a bad change is undone by booting the generation before it. The distribution's new release, 26.11 "Zokor", released November 28, goes one step further: it adds an option for the bootloader to detect a bad generation and recover from it automatically.
The file is the system
A NixOS machine is configured in /etc/nixos/configuration.nix, a file written in the Nix language. It is a list of declarations, not a sequence of commands: turn on the SSH server with services.openssh.enable = true, pick the packages with environment.systemPackages, set the hostname, the firewall, the desktop. Nothing takes effect until nixos-rebuild runs: changes to the file only take effect after a rebuild, as the manual puts it.
The rebuild checks the work before it builds anything. Define an option that does not exist, or give one a value of the wrong type, and the rebuild fails with an error naming the file and the line. The configuration can also be split into modules, so a laptop and a server can share the common parts and differ only where they must. The project's own pitch is that the same approach describes a laptop or a fleet of servers, and the file is what makes that true: copy it to another machine, rebuild, and the second machine comes out the same.
The same file also answers the questions that decide the container setup. It declares which runtime runs, whether that is Docker or Podman, and which services come back after a reboot, the two questions at the heart of our comparison of Docker, Podman, and plain systemd. On a conventional distribution those answers live in a dozen places: a daemon's config, a systemd unit, a group membership. On NixOS they live in one file, and changing them is editing a line.
Why a rebuild can be undone
The trick is not that NixOS never breaks. It is that a break costs a reboot, not a reinstall.
Every package on the system lives in /nix/store, a read-only directory, under a path that starts with a cryptographic hash of everything that went into building it. Configuration files are generated the same way, and most of what sits in /etc is a symlink to a generated file in the store. Because nothing is ever overwritten in place, two versions of the same package can sit side by side, and a new system generation is just a new set of store paths with a new boot entry pointing at them.
That is what makes the rollback real. Each rebuild adds an entry to the boot menu, so a broken generation is undone by booting the previous one, or by running nixos-rebuild switch --rollback. An upgrade interrupted halfway, by a power cut, for example, leaves the system consistent: it boots either the old configuration or the new one, never a mixture of the two. The 26.11 release adds systemd-boot Automatic Boot Assessment, an option that lets the bootloader notice a generation that fails to boot and recover from it without being asked.

The generations accumulate on disk until garbage collection removes them, which is the quiet cost of the safety net. A system that has been rebuilt a hundred times carries a hundred generations' worth of packages, and the store grows until someone runs the collection. The manual treats that as routine maintenance, and it is, but it is maintenance a conventional distribution never asks for.
The same file, any machine
Reproducibility is the reason the file exists, and it is also where the promise needs its limits stated plainly. Given the same inputs, the same nixpkgs revision and the same configuration files, evaluation is deterministic and produces the same build plan on any machine. What "the same inputs" means is the part people argue about.
Nixpkgs is the package collection the whole system is built from, and its README describes it as a collection of over 140,000 software packages. The repository is public under the MIT license, and as read today it shows 26,994 stars, 20,890 forks, and 1,132,614 commits, with Hydra, the project's continuous integration system, building and testing the collection and publishing finished binaries to a cache, so most installs download a prebuilt package instead of compiling from source.
Flakes are the mechanism that pins the inputs down. A flake is a directory with a flake.nix file listing its dependencies and a flake.lock file recording the exact revision of each one, so "install today's packages" becomes "install the packages from this exact revision of nixpkgs". The complication, and the project does not hide it, is that flakes are still an experimental feature in upstream Nix, five years after they arrived in Nix 2.4. The project's own wiki calls them experimental and widely used in the same paragraph, and the 2025 community survey found 78.9 percent of nearly 3,400 respondents using them. The older channel system, by contrast, is a moving pointer to a nixpkgs branch: convenient, and unrecorded.
What it costs
The first cost is the language. Nix is a purely functional language, and configuration.nix is a program, not a settings file. Reviewers have said so for a decade: Jesse Smith, reviewing NixOS 15.09 for DistroWatch in 2015, wrote that setting up NixOS is not for beginners, and a 2022 Full Circle review of 21.11 concluded that the distribution has a steep learning curve for package management. The tools have matured since, and a 2022 review in The Register found the install much simpler than reports from a few years earlier suggested, but the learning curve is still the first thing a newcomer meets.
The second cost is that NixOS does not follow the Filesystem Hierarchy Standard. There is no /usr/bin full of programs and no /lib full of libraries; everything lives in the store, and software that expects the usual paths will not run as it stands. AppImage executables, which expect certain libraries in certain places, cannot run directly. Proprietary software is a separate negotiation: the installer asks whether to allow unfree software, and packages that need it stay out unless the flag is set.
The third cost is the one the project's own documentation is most honest about, which is that reproducibility covers the system, not the machine. User data, state in /var, and anything outside the declared configuration are untouched by the model. A flake pins the software; it does not pin the life lived on top of it. That is a fair boundary, but it is still a boundary.
A project that rebuilt its own governance
NixOS is twenty years into its idea and two years into a second act. Nix began in 2003 as a research project by Eelco Dolstra at Utrecht University, and his 2006 doctoral thesis, "The Purely Functional Software Deployment Model", laid out the design. The first NixOS prototype came the same year, in a master's thesis by Armijn Hemel, and the first stable release, 13.10, shipped in 2013. The NixOS Foundation, a Dutch non-profit, has supported the project since 2015, and releases have arrived twice a year, in May and November, since 2021.
The governance, for most of that history, rested on the founder. In the spring of 2024 it broke. An open letter published April 21, signed by more than a hundred people, called for Dolstra's resignation from the board and six months away from the project, warning the signatories would back a fork if he stayed. It alleged he had repeatedly overruled decisions that were supposed to be made collaboratively, blocked longtime contributors from becoming code reviewers, and blocked a build-system change that had passed the RFC process, and it said he pushed hard for the defense contractor Anduril to sponsor NixCon against the wishes of many core contributors. LWN's reporting at the time counted 24 maintainers leaving in total. Dolstra replied that the board's job was financial and legal work, not running the community, and denied seeking outsized influence. The Foundation board answered in May 2024 with a post that took accountability for a series of crises around communication, leadership, moderation, and representation, and announced that Dolstra would formally step down from the board and that a constitutional assembly would be appointed within fourteen days to build a community-run governance structure.
The assembly delivered. A constitution was finalized in September 2024, the first Steering Committee election ran that October, and the results, 450 ballots cast at 56 percent turnout, seated a seven-member committee. The assembly disbanded in November 2024, and the committee now holds annual elections, with the 2025 and 2026 elections documented on the project's governance page.
The split also produced a fork. Lix is a community-owned fork of the Nix package manager, built for backward compatibility, and it can be used transparently as the Nix implementation on a NixOS system. The 26.11 release notes now list a Lix module for configuring remote builders, which is a quiet measure of how far the fork has travelled: the project it split from now ships it as a supported option.
Who should try it
NixOS makes sense for people who manage machines rather than just use one: homelab owners, anyone running the same setup on a laptop and a server, developers who want a development environment that travels with the project. The cheapest test needs no commitment at all. Nix, the package manager, installs on the distribution already running, and the manual documents exactly that, so the language and the store can be tried before a machine is ever reinstalled. The live ISO is the other low-cost way in.
The new release is a reasonable moment to look. Version 26.11 "Zokor" ships Nix 2.35 and GNOME 51, makes PostgreSQL 18 the default for new installations, generates hybrid post-quantum ML-DSA 44/Ed25519 SSH host keys by default, and adds dozens of new modules, from a Brave browser module to a Portmaster firewall module. None of that changes the underlying bargain. The honest test is a weekend: install Nix on the machine already on the desk, pin a flake, rebuild a laptop from the file, and see whether the rollback is as boring as the documentation promises. If it is, the distribution has earned the argument. The language may get in the way first, and the file will still be there when the next broken update comes around.


