diff options
author | regnat <rg@regnat.ovh> | 2021-05-24 10:51:02 +0200 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2021-05-24 15:20:58 +0200 |
commit | 0cebbdf687b05f3e686b7e1f17a58aefed1f3483 (patch) | |
tree | 54e11987ef58f1306527d37e142a81cbaf1e0988 /nixos | |
parent | 97b94af4eb907c9f03fbb05b86375a0c350a35bc (diff) |
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>
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/misc/nix-daemon.nix | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/nixos/modules/services/misc/nix-daemon.nix b/nixos/modules/services/misc/nix-daemon.nix index df745fa7168bc..133e96da0ec8e 100644 --- a/nixos/modules/services/misc/nix-daemon.nix +++ b/nixos/modules/services/misc/nix-daemon.nix @@ -12,8 +12,6 @@ let isNix23 = versionAtLeast nixVersion "2.3pre"; - isNix24 = versionAtLeast nixVersion "2.4pre"; - makeNixBuildUser = nr: { name = "nixbld${toString nr}"; value = { @@ -43,11 +41,7 @@ let max-jobs = ${toString (cfg.maxJobs)} cores = ${toString (cfg.buildCores)} sandbox = ${if (builtins.isBool cfg.useSandbox) then boolToString cfg.useSandbox else cfg.useSandbox} - ${if isNix24 then '' - sandbox-paths = ${toString cfg.sandboxPaths} - '' else '' - extra-sandbox-paths = ${toString cfg.sandboxPaths} - ''} + extra-sandbox-paths = ${toString cfg.sandboxPaths} substituters = ${toString cfg.binaryCaches} trusted-substituters = ${toString cfg.trustedBinaryCaches} trusted-public-keys = ${toString cfg.binaryCachePublicKeys} |