0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

nixos: Don't set !allowSubstitutes (#314664)

It is set by `runCommandLocal` and prevents fetching the build output
from `cache.nixos.org` or another trusted substituter.
This commit is contained in:
nicoo 2024-12-12 18:26:24 +00:00 committed by GitHub
parent 380d334e82
commit f6c5531461
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 65 additions and 40 deletions

View file

@ -30,7 +30,9 @@ let
${confServer}
${confNoServer}
'';
confFile = if cfg.checkconf then pkgs.runCommandLocal "unbound-checkconf" { } ''
confFile = if cfg.checkconf then pkgs.runCommand "unbound-checkconf" {
preferLocalBuild = true;
} ''
cp ${confFileUnchecked} unbound.conf
# fake stateDir which is not accessible in the sandbox