mirror of
https://github.com/NixOS/nix
synced 2025-06-25 19:01:16 +02:00
Turn NIX_PATH into a config setting
This allows it to be set in nix.conf.
This commit is contained in:
parent
ec9dd9a5ae
commit
d12d69ea1a
2 changed files with 24 additions and 14 deletions
|
@ -339,9 +339,16 @@ struct InvalidPathError : EvalError
|
|||
|
||||
struct EvalSettings : Config
|
||||
{
|
||||
EvalSettings();
|
||||
|
||||
static Strings getDefaultNixPath();
|
||||
|
||||
Setting<bool> enableNativeCode{this, false, "allow-unsafe-native-code-during-evaluation",
|
||||
"Whether builtin functions that allow executing native code should be enabled."};
|
||||
|
||||
Setting<Strings> nixPath{this, getDefaultNixPath(), "nix-path",
|
||||
"List of directories to be searched for <...> file references."};
|
||||
|
||||
Setting<bool> restrictEval{this, false, "restrict-eval",
|
||||
"Whether to restrict file system access to paths in $NIX_PATH, "
|
||||
"and network access to the URI prefixes listed in 'allowed-uris'."};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue