docs: fix description of how NIX_PATH / nix-path interact

If nix-path is set in nix.conf, the environment variable is always
ignored.
This commit is contained in:
Vladimir Panteleev 2024-06-30 15:04:30 +00:00
parent 53a5266220
commit 77b4b66900
No known key found for this signature in database
GPG Key ID: 5004F0FAD051576D

View File

@ -49,7 +49,9 @@ struct EvalSettings : Config
$NIX_STATE_DIR/profiles/per-user/root/channels
```
It can be overridden with the [`NIX_PATH` environment variable](@docroot@/command-ref/env-common.md#env-NIX_PATH) or the [`-I` command line option](@docroot@/command-ref/opt-common.md#opt-I).
It can be overridden with the [`-I` command line option](@docroot@/command-ref/opt-common.md#opt-I).
Due to a bug in Nix versions 2.13 and <2.24, `nix-path` overrides the [`NIX_PATH` environment variable](@docroot@/command-ref/env-common.md#env-NIX_PATH) when set.
> **Note**
>