Skip to content

Commit

Permalink
docs: fix description of how NIX_PATH / nix-path interact
Browse files Browse the repository at this point in the history
If nix-path is set in nix.conf, the environment variable is always
ignored.
  • Loading branch information
CyberShadow committed Jul 7, 2024
1 parent dc538ad commit 441452e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libexpr/eval-settings.hh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,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, it overrides the [`NIX_PATH` environment variable](@docroot@/command-ref/env-common.md#env-NIX_PATH) when set.
> **Note**
>
Expand Down

0 comments on commit 441452e

Please sign in to comment.