From 5a75aa8595e5762187b1196454f37959febb7b1d Mon Sep 17 00:00:00 2001 From: Andrei Boar Date: Thu, 4 Aug 2022 14:19:51 +0300 Subject: manual: update docs when NIX_PATH is empty --- doc/manual/src/command-ref/env-common.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/manual/src/command-ref/env-common.md') 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 -- cgit v1.2.3