Nix is a package manager for Linux and other Unix systems built around isolated, reproducible builds. NixOS is a Linux distribution configured declaratively with Nix.
Overview
Nix is a package manager that builds software in isolation so dependencies are explicit and builds are meant to be reproducible across machines. It runs on Linux and macOS alongside an existing system package manager, focusing on reliable installs and rollbacks.
The Nix model builds each package in a sandboxed environment so undeclared dependencies cannot leak in. Configuration and environments can be shared declaratively, which helps teams reproduce development and build setups. Upgrading one package is designed not to break unrelated packages, and previous versions can be rolled back.
NixOS applies the same Nix tooling as a full Linux distribution: system and service configuration is described in Nix expressions rather than imperative scripts. The wider ecosystem includes Nixpkgs, a large collection of packaged software, plus patterns for dev environments, cloud images, and deployments mentioned on the project site.
Documentation and tutorials are centralized on nix.dev for newcomers, with the Nix manual as the reference. The tool originated from academic work on purely functional software deployment and is maintained by a global contributor community.
Key features
- Isolated reproducible builds
- Declarative configuration
- Rollback to prior versions
- Cross-machine environment sharing
- Large Nixpkgs collection
- Runs beside other package managers
- NixOS Linux distribution
- Dev environment profiles
Use cases
- Reproducible developer environments
- Reliable server package management
- Declarative NixOS machine setup
- CI builds with pinned dependencies
- Rolling back failed upgrades