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
3.8.
Uninstalling Nix
4.
Nix Store
4.1.
File System Object
4.2.
Store Object
4.3.
Store Path
4.4.
Store Types
4.4.1.
Dummy Store
4.4.2.
Experimental Local Overlay Store
4.4.3.
Experimental SSH Store
4.4.4.
Experimental SSH Store with filesytem mounted
4.4.5.
HTTP Binary Cache Store
4.4.6.
Local Binary Cache Store
4.4.7.
Local Daemon Store
4.4.8.
Local Store
4.4.9.
S3 Binary Cache Store
4.4.10.
SSH Store
5.
Nix Language
5.1.
Data Types
5.2.
Language Constructs
5.2.1.
String interpolation
5.2.2.
Lookup path
5.3.
Operators
5.4.
Derivations
5.4.1.
Advanced Attributes
5.4.2.
Import From Derivation
5.5.
Built-in Constants
5.6.
Built-in Functions
6.
Package Management
6.1.
Profiles
6.2.
Garbage Collection
6.2.1.
Garbage Collector Roots
7.
Advanced Topics
7.1.
Sharing Packages Between Machines
7.1.1.
Serving a Nix store via HTTP
7.1.2.
Copying Closures via SSH
7.1.3.
Serving a Nix store via SSH
7.2.
Remote Builds
7.3.
Tuning Cores and Jobs
7.4.
Verifying Build Reproducibility
7.5.
Using the post-build-hook
8.
Command Reference
8.1.
Common Options
8.2.
Common Environment Variables
8.3.
Main Commands
8.3.1.
nix-build
8.3.2.
nix-shell
8.3.3.
nix-store
8.3.3.1.
nix-store --add-fixed
8.3.3.2.
nix-store --add
8.3.3.3.
nix-store --delete
8.3.3.4.
nix-store --dump-db
8.3.3.5.
nix-store --dump
8.3.3.6.
nix-store --export
8.3.3.7.
nix-store --gc
8.3.3.8.
nix-store --generate-binary-cache-key
8.3.3.9.
nix-store --import
8.3.3.10.
nix-store --load-db
8.3.3.11.
nix-store --optimise
8.3.3.12.
nix-store --print-env
8.3.3.13.
nix-store --query
8.3.3.14.
nix-store --read-log
8.3.3.15.
nix-store --realise
8.3.3.16.
nix-store --repair-path
8.3.3.17.
nix-store --restore
8.3.3.18.
nix-store --serve
8.3.3.19.
nix-store --verify-path
8.3.3.20.
nix-store --verify
8.3.4.
nix-env
8.3.4.1.
nix-env --delete-generations
8.3.4.2.
nix-env --install
8.3.4.3.
nix-env --list-generations
8.3.4.4.
nix-env --query
8.3.4.5.
nix-env --rollback
8.3.4.6.
nix-env --set-flag
8.3.4.7.
nix-env --set
8.3.4.8.
nix-env --switch-generation
8.3.4.9.
nix-env --switch-profile
8.3.4.10.
nix-env --uninstall
8.3.4.11.
nix-env --upgrade
8.4.
Utilities
8.4.1.
nix-channel
8.4.2.
nix-collect-garbage
8.4.3.
nix-copy-closure
8.4.4.
nix-daemon
8.4.5.
nix-hash
8.4.6.
nix-instantiate
8.4.7.
nix-prefetch-url
8.5.
Experimental Commands
8.5.1.
nix
8.5.2.
nix build
8.5.3.
nix bundle
8.5.4.
nix config
8.5.5.
nix config check
8.5.6.
nix config show
8.5.7.
nix copy
8.5.8.
nix daemon
8.5.9.
nix derivation
8.5.10.
nix derivation add
8.5.11.
nix derivation show
8.5.12.
nix develop
8.5.13.
nix edit
8.5.14.
nix eval
8.5.15.
nix flake
8.5.16.
nix flake archive
8.5.17.
nix flake check
8.5.18.
nix flake clone
8.5.19.
nix flake info
8.5.20.
nix flake init
8.5.21.
nix flake lock
8.5.22.
nix flake metadata
8.5.23.
nix flake new
8.5.24.
nix flake prefetch
8.5.25.
nix flake show
8.5.26.
nix flake update
8.5.27.
nix fmt
8.5.28.
nix hash
8.5.29.
nix hash convert
8.5.30.
nix hash file
8.5.31.
nix hash path
8.5.32.
nix hash to-base16
8.5.33.
nix hash to-base32
8.5.34.
nix hash to-base64
8.5.35.
nix hash to-sri
8.5.36.
nix help
8.5.37.
nix help-stores
8.5.38.
nix key
8.5.39.
nix key convert-secret-to-public
8.5.40.
nix key generate-secret
8.5.41.
nix log
8.5.42.
nix nar
8.5.43.
nix nar cat
8.5.44.
nix nar dump-path
8.5.45.
nix nar ls
8.5.46.
nix nar pack
8.5.47.
nix path-info
8.5.48.
nix print-dev-env
8.5.49.
nix profile
8.5.50.
nix profile diff-closures
8.5.51.
nix profile history
8.5.52.
nix profile install
8.5.53.
nix profile list
8.5.54.
nix profile remove
8.5.55.
nix profile rollback
8.5.56.
nix profile upgrade
8.5.57.
nix profile wipe-history
8.5.58.
nix realisation
8.5.59.
nix realisation info
8.5.60.
nix registry
8.5.61.
nix registry add
8.5.62.
nix registry list
8.5.63.
nix registry pin
8.5.64.
nix registry remove
8.5.65.
nix repl
8.5.66.
nix run
8.5.67.
nix search
8.5.68.
nix shell
8.5.69.
nix store
8.5.70.
nix store add
8.5.71.
nix store add-file
8.5.72.
nix store add-path
8.5.73.
nix store cat
8.5.74.
nix store copy-log
8.5.75.
nix store copy-sigs
8.5.76.
nix store delete
8.5.77.
nix store diff-closures
8.5.78.
nix store dump-path
8.5.79.
nix store gc
8.5.80.
nix store info
8.5.81.
nix store ls
8.5.82.
nix store make-content-addressed
8.5.83.
nix store optimise
8.5.84.
nix store path-from-hash-part
8.5.85.
nix store ping
8.5.86.
nix store prefetch-file
8.5.87.
nix store repair
8.5.88.
nix store sign
8.5.89.
nix store verify
8.5.90.
nix upgrade-nix
8.5.91.
nix why-depends
8.6.
Files
8.6.1.
nix.conf
8.6.2.
Profiles
8.6.2.1.
manifest.nix
8.6.2.2.
manifest.json
8.6.3.
Channels
8.6.4.
Default Nix expression
9.
Architecture and Design
10.
Formats and Protocols
10.1.
JSON Formats
10.1.1.
Store Object Info
10.1.2.
Derivation
10.2.
Serving Tarball Flakes
10.3.
Store Path Specification
10.4.
Nix Archive (NAR) Format
10.5.
Derivation "ATerm" file format
11.
Glossary
12.
Contributing
12.1.
Hacking
12.2.
Testing
12.3.
Documentation
12.4.
Experimental Features
12.5.
CLI guideline
12.6.
C++ style guide
13.
Releases
13.1.
Release 2.22 (2024-04-23)
13.2.
Release 2.21 (2024-03-11)
13.3.
Release 2.20 (2024-01-29)
13.4.
Release 2.19 (2023-11-17)
13.5.
Release 2.18 (2023-09-20)
13.6.
Release 2.17 (2023-07-24)
13.7.
Release 2.16 (2023-05-31)
13.8.
Release 2.15 (2023-04-11)
13.9.
Release 2.14 (2023-02-28)
13.10.
Release 2.13 (2023-01-17)
13.11.
Release 2.12 (2022-12-06)
13.12.
Release 2.11 (2022-08-25)
13.13.
Release 2.10 (2022-07-11)
13.14.
Release 2.9 (2022-05-30)
13.15.
Release 2.8 (2022-04-19)
13.16.
Release 2.7 (2022-03-07)
13.17.
Release 2.6 (2022-01-24)
13.18.
Release 2.5 (2021-12-13)
13.19.
Release 2.4 (2021-11-01)
13.20.
Release 2.3 (2019-09-04)
13.21.
Release 2.2 (2019-01-11)
13.22.
Release 2.1 (2018-09-02)
13.23.
Release 2.0 (2018-02-22)
13.24.
Release 1.11.10 (2017-06-12)
13.25.
Release 1.11 (2016-01-19)
13.26.
Release 1.10 (2015-09-03)
13.27.
Release 1.9 (2015-06-12)
13.28.
Release 1.8 (2014-12-14)
13.29.
Release 1.7 (2014-04-11)
13.30.
Release 1.6.1 (2013-10-28)
13.31.
Release 1.6 (2013-09-10)
13.32.
Release 1.5.2 (2013-05-13)
13.33.
Release 1.5 (2013-02-27)
13.34.
Release 1.4 (2013-02-26)
13.35.
Release 1.3 (2013-01-04)
13.36.
Release 1.2 (2012-12-06)
13.37.
Release 1.1 (2012-07-18)
13.38.
Release 1.0 (2012-05-11)
13.39.
Release 0.16 (2010-08-17)
13.40.
Release 0.15 (2010-03-17)
13.41.
Release 0.14 (2010-02-04)
13.42.
Release 0.13 (2009-11-05)
13.43.
Release 0.12 (2008-11-20)
13.44.
Release 0.11 (2007-12-31)
13.45.
Release 0.10.1 (2006-10-11)
13.46.
Release 0.10 (2006-10-06)
13.47.
Release 0.9.2 (2005-09-21)
13.48.
Release 0.9.1 (2005-09-20)
13.49.
Release 0.9 (2005-09-16)
13.50.
Release 0.8.1 (2005-04-13)
13.51.
Release 0.8 (2005-04-11)
13.52.
Release 0.7 (2005-01-12)
13.53.
Release 0.6 (2004-11-14)
13.54.
Release 0.5 and earlier
Light
Rust
Coal
Navy
Ayu
Nix Reference Manual
Utilities
This section lists utilities that you can use when you work with Nix.