mirror of
https://github.com/NixOS/hydra.git
synced 2024-10-17 16:37:26 -04:00
Make eval restriction an option instead of forcing
This commit is contained in:
parent
b9fb66401b
commit
de203436cd
|
@ -268,6 +268,7 @@ int main(int argc, char * * argv)
|
|||
|
||||
auto nrWorkers = config->getIntOption("evaluator_workers", 1);
|
||||
maxMemorySize = config->getIntOption("evaluator_max_memory_size", 4096);
|
||||
auto restrictEval = config->getBoolOption("evaluator_restrict_eval", true);
|
||||
|
||||
initNix();
|
||||
initGC();
|
||||
|
@ -279,7 +280,7 @@ int main(int argc, char * * argv)
|
|||
|
||||
/* Prevent access to paths outside of the Nix search path and
|
||||
to the environment. */
|
||||
evalSettings.restrictEval = true;
|
||||
evalSettings.restrictEval = restrictEval;
|
||||
|
||||
/* When building a flake, use pure evaluation (no access to
|
||||
'getEnv', 'currentSystem' etc. */
|
||||
|
|
Loading…
Reference in a new issue