about summary refs log tree commit diff
path: root/modules/core
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2017-04-23 19:55:34 +0200
committeraszlig <aszlig@redmoonstudios.org>2017-04-23 20:00:10 +0200
commitc7d94896172e7935666235a7857ad0b8be39ef42 (patch)
treee57ff3ff6b5e97e834be2a89fac7b104975e1944 /modules/core
parent2060f04bf6487dee8dd173b4bc7544d1067f8031 (diff)
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 <aszlig@redmoonstudios.org>
Cc: @sternenseemann
Diffstat (limited to 'modules/core')
-rw-r--r--modules/core/common.nix5
1 files changed, 4 insertions, 1 deletions
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="
     ];