1.
Introduction
2.
Quick Start
3.
Installation
3.1.
Supported Platforms
3.2.
Installing a Binary Distribution
3.3.
Installing Nix from Source
3.3.1.
Prerequisites
3.3.2.
Obtaining a Source Distribution
3.3.3.
Building Nix from Source
3.4.
Using Nix within Docker
3.5.
Security
3.5.1.
Single-User Mode
3.5.2.
Multi-User Mode
3.6.
Environment Variables
3.7.
Upgrading Nix
4.
Package Management
4.1.
Basic Package Management
4.2.
Profiles
4.3.
Garbage Collection
4.3.1.
Garbage Collector Roots
4.4.
Channels
4.5.
Sharing Packages Between Machines
4.5.1.
Serving a Nix store via HTTP
4.5.2.
Copying Closures via SSH
4.5.3.
Serving a Nix store via SSH
4.5.4.
Serving a Nix store via S3
5.
Nix Language
5.1.
Data Types
5.2.
Language Constructs
5.2.1.
String interpolation
5.3.
Operators
5.4.
Derivations
5.4.1.
Advanced Attributes
5.5.
Built-in Constants
5.6.
Built-in Functions
6.
Advanced Topics
6.1.
Remote Builds
6.2.
Tuning Cores and Jobs
6.3.
Verifying Build Reproducibility
6.4.
Using the post-build-hook
7.
Command Reference
7.1.
Common Options
7.2.
Common Environment Variables
7.3.
Main Commands
7.3.1.
nix-env
7.3.2.
nix-build
7.3.3.
nix-shell
7.3.4.
nix-store
7.4.
Utilities
7.4.1.
nix-channel
7.4.2.
nix-collect-garbage
7.4.3.
nix-copy-closure
7.4.4.
nix-daemon
7.4.5.
nix-hash
7.4.6.
nix-instantiate
7.4.7.
nix-prefetch-url
7.5.
Experimental Commands
7.5.1.
nix
7.5.2.
nix build
7.5.3.
nix bundle
7.5.4.
nix copy
7.5.5.
nix daemon
7.5.6.
nix describe-stores
7.5.7.
nix develop
7.5.8.
nix doctor
7.5.9.
nix edit
7.5.10.
nix eval
7.5.11.
nix flake
7.5.12.
nix flake archive
7.5.13.
nix flake check
7.5.14.
nix flake clone
7.5.15.
nix flake info
7.5.16.
nix flake init
7.5.17.
nix flake lock
7.5.18.
nix flake metadata
7.5.19.
nix flake new
7.5.20.
nix flake prefetch
7.5.21.
nix flake show
7.5.22.
nix flake update
7.5.23.
nix fmt
7.5.24.
nix hash
7.5.25.
nix hash file
7.5.26.
nix hash path
7.5.27.
nix hash to-base16
7.5.28.
nix hash to-base32
7.5.29.
nix hash to-base64
7.5.30.
nix hash to-sri
7.5.31.
nix help
7.5.32.
nix key
7.5.33.
nix key convert-secret-to-public
7.5.34.
nix key generate-secret
7.5.35.
nix log
7.5.36.
nix nar
7.5.37.
nix nar cat
7.5.38.
nix nar dump-path
7.5.39.
nix nar ls
7.5.40.
nix path-info
7.5.41.
nix print-dev-env
7.5.42.
nix profile
7.5.43.
nix profile diff-closures
7.5.44.
nix profile history
7.5.45.
nix profile install
7.5.46.
nix profile list
7.5.47.
nix profile remove
7.5.48.
nix profile rollback
7.5.49.
nix profile upgrade
7.5.50.
nix profile wipe-history
7.5.51.
nix realisation
7.5.52.
nix realisation info
7.5.53.
nix registry
7.5.54.
nix registry add
7.5.55.
nix registry list
7.5.56.
nix registry pin
7.5.57.
nix registry remove
7.5.58.
nix repl
7.5.59.
nix run
7.5.60.
nix search
7.5.61.
nix shell
7.5.62.
nix show-config
7.5.63.
nix show-derivation
7.5.64.
nix store
7.5.65.
nix store add-file
7.5.66.
nix store add-path
7.5.67.
nix store cat
7.5.68.
nix store copy-log
7.5.69.
nix store copy-sigs
7.5.70.
nix store delete
7.5.71.
nix store diff-closures
7.5.72.
nix store dump-path
7.5.73.
nix store gc
7.5.74.
nix store ls
7.5.75.
nix store make-content-addressed
7.5.76.
nix store optimise
7.5.77.
nix store path-from-hash-part
7.5.78.
nix store ping
7.5.79.
nix store prefetch-file
7.5.80.
nix store repair
7.5.81.
nix store sign
7.5.82.
nix store verify
7.5.83.
nix upgrade-nix
7.5.84.
nix why-depends
7.6.
Files
7.6.1.
nix.conf
8.
Architecture
9.
Protocols
9.1.
Serving Tarball Flakes
10.
Glossary
11.
Contributing
11.1.
Hacking
11.2.
CLI guideline
12.
Release Notes
12.1.
Release 2.13 (2023-01-17)
12.2.
Release 2.12 (2022-12-06)
12.3.
Release 2.11 (2022-08-25)
12.4.
Release 2.10 (2022-07-11)
12.5.
Release 2.9 (2022-05-30)
12.6.
Release 2.8 (2022-04-19)
12.7.
Release 2.7 (2022-03-07)
12.8.
Release 2.6 (2022-01-24)
12.9.
Release 2.5 (2021-12-13)
12.10.
Release 2.4 (2021-11-01)
12.11.
Release 2.3 (2019-09-04)
12.12.
Release 2.2 (2019-01-11)
12.13.
Release 2.1 (2018-09-02)
12.14.
Release 2.0 (2018-02-22)
12.15.
Release 1.11.10 (2017-06-12)
12.16.
Release 1.11 (2016-01-19)
12.17.
Release 1.10 (2015-09-03)
12.18.
Release 1.9 (2015-06-12)
12.19.
Release 1.8 (2014-12-14)
12.20.
Release 1.7 (2014-04-11)
12.21.
Release 1.6.1 (2013-10-28)
12.22.
Release 1.6 (2013-09-10)
12.23.
Release 1.5.2 (2013-05-13)
12.24.
Release 1.5 (2013-02-27)
12.25.
Release 1.4 (2013-02-26)
12.26.
Release 1.3 (2013-01-04)
12.27.
Release 1.2 (2012-12-06)
12.28.
Release 1.1 (2012-07-18)
12.29.
Release 1.0 (2012-05-11)
12.30.
Release 0.16 (2010-08-17)
12.31.
Release 0.15 (2010-03-17)
12.32.
Release 0.14 (2010-02-04)
12.33.
Release 0.13 (2009-11-05)
12.34.
Release 0.12 (2008-11-20)
12.35.
Release 0.11 (2007-12-31)
12.36.
Release 0.10.1 (2006-10-11)
12.37.
Release 0.10 (2006-10-06)
12.38.
Release 0.9.2 (2005-09-21)
12.39.
Release 0.9.1 (2005-09-20)
12.40.
Release 0.9 (2005-09-16)
12.41.
Release 0.8.1 (2005-04-13)
12.42.
Release 0.8 (2005-04-11)
12.43.
Release 0.7 (2005-01-12)
12.44.
Release 0.6 (2004-11-14)
12.45.
Release 0.5 and earlier
Light (default)
Rust
Coal
Navy
Ayu
Nix Reference Manual
Main Commands
This section lists commands and options that you can use when you work with Nix.