From c7d94896172e7935666235a7857ad0b8be39ef42 Mon Sep 17 00:00:00 2001 From: aszlig Date: Sun, 23 Apr 2017 19:55:34 +0200 Subject: core/common: Add Headcounter Hydra to binaryCaches This makes sense to put into the core module here, because we already have the public key in there as well and if we want to use the binary cache outside of a channel it's a good idea to provide it here by default. Being a default of course also means that users can easily override this using: nix.binaryCaches = mkForce [ "something else" ]; I've also removed the redundant setting of that option in all of the machine configurations. Signed-off-by: aszlig Cc: @sternenseemann --- modules/core/common.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/core') diff --git a/modules/core/common.nix b/modules/core/common.nix index a6a491b4..0a8e696c 100644 --- a/modules/core/common.nix +++ b/modules/core/common.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, ... }: +{ config, options, pkgs, lib, ... }: with lib; @@ -48,6 +48,9 @@ with lib; }) vuizvui; }; + nix.binaryCaches = options.nix.binaryCaches.default ++ [ + "https://headcounter.org/hydra/" + ]; nix.binaryCachePublicKeys = [ "headcounter.org:/7YANMvnQnyvcVB6rgFTdb8p5LG1OTXaO+21CaOSBzg=" ]; -- cgit 1.4.1