Revert "nixos/nix-daemon: fix sandbox-paths option"
This reverts commit aeeee447bcc181d57a19d348f857326f4e1959fe. (cherry picked from commit 113823669b9b71fff84bc592d1fd6022635c28eb) Signed-off-by: Domen Kožar <domen@dev.si>
This commit is contained in:
parent
97b94af4eb
commit
0cebbdf687
@ -12,8 +12,6 @@ let
|
|||||||
|
|
||||||
isNix23 = versionAtLeast nixVersion "2.3pre";
|
isNix23 = versionAtLeast nixVersion "2.3pre";
|
||||||
|
|
||||||
isNix24 = versionAtLeast nixVersion "2.4pre";
|
|
||||||
|
|
||||||
makeNixBuildUser = nr: {
|
makeNixBuildUser = nr: {
|
||||||
name = "nixbld${toString nr}";
|
name = "nixbld${toString nr}";
|
||||||
value = {
|
value = {
|
||||||
@ -43,11 +41,7 @@ let
|
|||||||
max-jobs = ${toString (cfg.maxJobs)}
|
max-jobs = ${toString (cfg.maxJobs)}
|
||||||
cores = ${toString (cfg.buildCores)}
|
cores = ${toString (cfg.buildCores)}
|
||||||
sandbox = ${if (builtins.isBool cfg.useSandbox) then boolToString cfg.useSandbox else cfg.useSandbox}
|
sandbox = ${if (builtins.isBool cfg.useSandbox) then boolToString cfg.useSandbox else cfg.useSandbox}
|
||||||
${if isNix24 then ''
|
extra-sandbox-paths = ${toString cfg.sandboxPaths}
|
||||||
sandbox-paths = ${toString cfg.sandboxPaths}
|
|
||||||
'' else ''
|
|
||||||
extra-sandbox-paths = ${toString cfg.sandboxPaths}
|
|
||||||
''}
|
|
||||||
substituters = ${toString cfg.binaryCaches}
|
substituters = ${toString cfg.binaryCaches}
|
||||||
trusted-substituters = ${toString cfg.trustedBinaryCaches}
|
trusted-substituters = ${toString cfg.trustedBinaryCaches}
|
||||||
trusted-public-keys = ${toString cfg.binaryCachePublicKeys}
|
trusted-public-keys = ${toString cfg.binaryCachePublicKeys}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user