1
0
Fork 0
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:
Daiderd Jordan 2018-02-01 20:02:35 +01:00
parent 3888df8e2b
commit 3bf2c6652f
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -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=" ];