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 Jun 30, 2024
1 parent dc538ad commit 5e27575
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libexpr/eval-settings.hh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ 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).
If set, it overrides the [`NIX_PATH` environment variable](@docroot@/command-ref/env-common.md#env-NIX_PATH),
and can be overridden with the [`-I` command line option](@docroot@/command-ref/opt-common.md#opt-I).
> **Note**
>
Expand Down

0 comments on commit 5e27575

Please sign in to comment.