diff --git a/doc/manual/env-common.xml b/doc/manual/env-common.xml index edfded7fcb..c4c0f9d2df 100644 --- a/doc/manual/env-common.xml +++ b/doc/manual/env-common.xml @@ -10,6 +10,40 @@ +NIX_PATH + + + + A colon-separated list of directories used to look up Nix + expressions enclosed in angle brackets (i.e., + <path>). For + instance, the value + + +/home/eelco/Dev:/etc/nixos + + will cause Nix to look for paths relative to + /home/eelco/Dev and + /etc/nixos, in that order. It is also + possible to match paths against a prefix. For example, the value + + +nixpkgs=/home/eelco/Dev/nixpkgs-branch:/etc/nixos + + will cause Nix to search for + <nixpkgs/path> in + /home/eelco/Dev/nixpkgs-branch/path + and + /etc/nixos/nixpkgs/path. + + + The search path can be extended using the + option, which takes precedence over + NIX_PATH. + + + + NIX_IGNORE_SYMLINK_STORE @@ -120,9 +154,12 @@ $ mount -o bind /mnt/otherdisk/nix /nix which is a program (typically some script) that Nix will call whenever it wants to build a derivation. This is used to implement distributed builds (see ). The protocol by + linkend="chap-distributed-builds" />). + + @@ -256,12 +294,13 @@ $ mount -o bind /mnt/otherdisk/nix /nix This variable contains the paths of remote Nix installations from whichs paths can be copied, separated by colons. - See for details. Each path - should be the /nix directory of a remote Nix - installation (i.e., not the /nix/store - directory). The paths are subject to globbing, so you can set it so - something like /var/run/nix/remote-stores/*/nix - and mount multiple remote filesystems in + See for details. Each path should be the + /nix directory of a remote Nix installation + (i.e., not the /nix/store directory). The + paths are subject to globbing, so you can set it so something like + /var/run/nix/remote-stores/*/nix and mount + multiple remote filesystems in /var/run/nix/remote-stores. Note that if you’re building through the number - + number - + number - + number @@ -33,6 +33,10 @@ type + + + path + diff --git a/doc/manual/opt-common.xml b/doc/manual/opt-common.xml index 92b76c01f1..b9df23dcfb 100644 --- a/doc/manual/opt-common.xml +++ b/doc/manual/opt-common.xml @@ -341,6 +341,16 @@ + path + + Add a path to the Nix expression search path. See + the NIX_PATH environment variable for details. Paths + added through take precedence over + NIX_PATH. + + + +