Package Nix

Package manager that makes package management reliable and reproducible

Nix is a purely functional package manager. This means that it treats packages like values in purely functional programming languages such as Haskell — they are built by functions that don’t have side-effects, and they never change after they have been built. Nix stores packages in the Nix store, usually the directory /nix/store.

Version: 2.2.2

General Commands

nix-build build a Nix expression
nix-channel manage Nix channels
nix-collect-garbage delete unreachable store paths
nix-copy-closure copy a closure to or from a remote machine via SSH
nix-env manipulate or query Nix user environments
nix-hash compute the cryptographic hash of a path
nix-instantiate instantiate store derivations from Nix expressions
nix-prefetch-url copy a file from a URL into the store and print its hash
nix-shell start an interactive shell based on a Nix expression
nix-store manipulate or query the Nix store

File Formats

nix.conf Nix configuration file

System Administration

nix-daemon Nix multi-user support daemon