Reduce number of parallel connections to cache.

https://github.com/NixOS/nixpkgs/issues/9453
This commit is contained in:
Gabriel Ebner 2015-08-26 12:17:52 +02:00
parent 6cdb91329d
commit 05428e4f20

@ -12,7 +12,10 @@
nix.binaryCaches = [ https://hydra.nixos.org https://cache.nixos.org ]; nix.binaryCaches = [ https://hydra.nixos.org https://cache.nixos.org ];
nix.trustedBinaryCaches = [ https://hydra.nixos.org https://cache.nixos.org ]; nix.trustedBinaryCaches = [ https://hydra.nixos.org https://cache.nixos.org ];
nix.binaryCachePublicKeys = [ "hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs=" ]; nix.binaryCachePublicKeys = [ "hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs=" ];
nix.extraOptions = "auto-optimise-store = true"; nix.extraOptions = ''
auto-optimise-store = true
binary-caches-parallel-connections = 10
'';
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
networking.firewall.enable = true; networking.firewall.enable = true;