From 50f5b6c733788b83fd7c64d0dcf77ecd0bb90462 Mon Sep 17 00:00:00 2001 From: Andrei Boar Date: Fri, 19 Aug 2022 12:28:51 +0300 Subject: [PATCH] Update doc/manual/src/command-ref/env-common.md Co-authored-by: Valentin Gagarin --- doc/manual/src/command-ref/env-common.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/manual/src/command-ref/env-common.md b/doc/manual/src/command-ref/env-common.md index 4846f3a10..c592233e4 100644 --- a/doc/manual/src/command-ref/env-common.md +++ b/doc/manual/src/command-ref/env-common.md @@ -50,9 +50,10 @@ Most Nix commands interpret the following environment variables: 2. `nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixpkgs` 3. `/nix/var/nix/profiles/per-user/root/channels` - If `NIX_PATH` is set to an empty string the above fallback will not happen and building will fail with: + If `NIX_PATH` is set to an empty string, resolving search paths will always fail. + For example, attempting to use `` will produce: - `error: file 'nixpkgs' was not found in the Nix search path` + error: file 'nixpkgs' was not found in the Nix search path - [`NIX_IGNORE_SYMLINK_STORE`]{#env-NIX_IGNORE_SYMLINK_STORE}\ Normally, the Nix store directory (typically `/nix/store`) is not