mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 03:14:03 +00:00
nix.conf: Set sandbox-fallback = false
For security, we don't want the sandbox to be disabled silently.
This commit is contained in:
parent
fa29f98bb5
commit
35c1c170d7
@ -8,7 +8,9 @@ let
|
||||
|
||||
nix = cfg.package.out;
|
||||
|
||||
isNix20 = versionAtLeast (getVersion nix) "2.0pre";
|
||||
nixVersion = getVersion nix;
|
||||
|
||||
isNix20 = versionAtLeast nixVersion "2.0pre";
|
||||
|
||||
makeNixBuildUser = nr:
|
||||
{ name = "nixbld${toString nr}";
|
||||
@ -61,6 +63,9 @@ let
|
||||
builders =
|
||||
''}
|
||||
system-features = ${toString cfg.systemFeatures}
|
||||
${optionalString (versionAtLeast nixVersion "2.3pre") ''
|
||||
sandbox-fallback = false
|
||||
''}
|
||||
$extraOptions
|
||||
END
|
||||
'' + optionalString cfg.checkConfig (
|
||||
|
Loading…
Reference in New Issue
Block a user