mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-13 20:30:02 +00:00
nix: don't set signed-binary-caches for nix 2.0
The option was removed.
This commit is contained in:
parent
3888df8e2b
commit
3bf2c6652f
1 changed files with 5 additions and 1 deletions
|
@ -5,7 +5,9 @@ with lib;
|
|||
let
|
||||
cfg = config.nix;
|
||||
|
||||
buildHook = if versionAtLeast (cfg.package.version or "<unknown>") "1.12pre"
|
||||
nixVersionAtLeast = versionAtLeast (cfg.package.version or "<unknown>");
|
||||
|
||||
buildHook = if nixVersionAtLeast "1.12pre"
|
||||
then "build-remote" else "build-remote.pl";
|
||||
|
||||
nixConf =
|
||||
|
@ -318,6 +320,8 @@ in
|
|||
(mkIf (!cfg.distributedBuilds && cfg.buildMachines != []) "nix.distributedBuilds is not enabled, build machines won't be configured.")
|
||||
];
|
||||
|
||||
nix.requireSignedBinaryCaches = mkIf (nixVersionAtLeast "2.0pre") false;
|
||||
|
||||
nix.binaryCaches = mkAfter [ https://cache.nixos.org/ ];
|
||||
nix.binaryCachePublicKeys = mkAfter [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue