Use the cache.nixos.org S3 bucket rather than CF for the build machines
https://github.com/NixOS/hydra/issues/276
Eelco Dolstra committed
Mar 10, 2016 at 13:59 UTC
6575d9f17d73d61837bb4ff13ab8512601f18ba8
1 file changed
+6
hydra-provisioner/nixops.nix
+6
@@ -44,6 +44,12 @@ in
44
nix.gc.automatic = true;
45
nix.gc.dates = "*:0/30";
46
nix.gc.options = ''--max-freed "$((15 * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | ${pkgs.gawk}/bin/awk '{ print $4 }')))"'';
47
+
48
+ # Use the cache.nixos.org S3 bucket directly, rather than going
49
+ # through Cloudfront, since same-region EC2<->S3 traffic is
50
+ # free. Also it avoids caching of negative lookups by
51
+ # Cloudfront.
52
+ nix.binaryCaches = lib.mkForce [ https://nix-cache.s3.amazonaws.com/ ];
53
};
54
55
}