Skip to content

Commit

Permalink
Document default nix-path value
Browse files Browse the repository at this point in the history
  • Loading branch information
ncfavier committed Jan 27, 2023
1 parent 1cba598 commit dba9173
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/libexpr/eval.hh
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,14 @@ struct EvalSettings : Config

Setting<Strings> nixPath{
this, {}, "nix-path",
"List of directories to be searched for `<...>` file references."};
R"(
List of directories to be searched for `<...>` file references.
If [pure evaluation](#conf-pure-eval) is disabled,
this is initialised using the [`NIX_PATH`](@docroot@/command-ref/env-common.md#env-NIX_PATH)
environment variable, or, if it is unset and [restricted evaluation](#conf-restrict-eval)
is disabled, a default search path including the user's and `root`'s channels.
)"};

Setting<bool> restrictEval{
this, false, "restrict-eval",
Expand Down

0 comments on commit dba9173

Please sign in to comment.