diff options
author | Andrei Boar <andrey.boar@gmail.com> | 2022-08-04 14:19:51 +0300 |
---|---|---|
committer | Andrei Boar <andrey.boar@gmail.com> | 2022-08-04 14:19:51 +0300 |
commit | 5a75aa8595e5762187b1196454f37959febb7b1d (patch) | |
tree | a2ca4522d23cd6eb7f04c6f1961e8e8ea43e5ab5 /doc/manual/src/command-ref/env-common.md | |
parent | 075bf6e5565aff9fba0ea02f3333c82adf4dccee (diff) |
manual: update docs when NIX_PATH is empty
Diffstat (limited to 'doc/manual/src/command-ref/env-common.md')
-rw-r--r-- | doc/manual/src/command-ref/env-common.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/manual/src/command-ref/env-common.md b/doc/manual/src/command-ref/env-common.md index 3f3eb6915..6280fb1c9 100644 --- a/doc/manual/src/command-ref/env-common.md +++ b/doc/manual/src/command-ref/env-common.md @@ -44,6 +44,12 @@ Most Nix commands interpret the following environment variables: The Nix search path can also be extended using the `-I` option to many Nix commands, which takes precedence over `NIX_PATH`. + If `NIX_PATH` is not set or empty, Nix will look up the following locations for a revision of `nixpkgs`: + + 1. `$HOME/.nix-defexpr/channels` + 2. `/nix/var/nix/profiles/per-user/root/channels/nixpkgs` + 3. `/nix/var/nix/profiles/per-user/root/channels.` + - [`NIX_IGNORE_SYMLINK_STORE`]{#env-NIX_IGNORE_SYMLINK_STORE}\ Normally, the Nix store directory (typically `/nix/store`) is not allowed to contain any symlink components. This is to prevent |