1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

nix: include cache.nixos.org by default

This commit is contained in:
Daiderd Jordan 2017-07-18 21:13:36 +02:00
parent 2156c30ad2
commit a31b3699b4
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -209,7 +209,7 @@ in
binaryCaches = mkOption { binaryCaches = mkOption {
type = types.listOf types.str; type = types.listOf types.str;
default = [ https://cache.nixos.org/ ]; example = [ https://cache.example.org/ ];
description = '' description = ''
List of binary cache URLs used to obtain pre-built binaries List of binary cache URLs used to obtain pre-built binaries
of Nix packages. of Nix packages.
@ -219,7 +219,7 @@ in
trustedBinaryCaches = mkOption { trustedBinaryCaches = mkOption {
type = types.listOf types.str; type = types.listOf types.str;
default = [ ]; default = [ ];
example = [ http://hydra.nixos.org/ ]; example = [ https://hydra.example.org/ ];
description = '' description = ''
List of binary cache URLs that non-root users can use (in List of binary cache URLs that non-root users can use (in
addition to those specified using addition to those specified using
@ -308,7 +308,8 @@ in
warnings = mkIf (!config.services.activate-system.enable && cfg.distributedBuilds) warnings = mkIf (!config.services.activate-system.enable && cfg.distributedBuilds)
[ "services.activate-system is not enabled, a reboot could cause distributed builds to stop working." ]; [ "services.activate-system is not enabled, a reboot could cause distributed builds to stop working." ];
nix.binaryCachePublicKeys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ]; nix.binaryCaches = mkAfter [ https://cache.nixos.org/ ];
nix.binaryCachePublicKeys = mkAfter [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
environment.etc."nix/nix.conf".source = nixConf; environment.etc."nix/nix.conf".source = nixConf;