summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-06-06 14:03:07 +0200
committermakefu <github@syntax-fehler.de>2017-06-06 14:03:07 +0200
commitbdd39fe8aed69972b85f531d418dd2943a8e3aeb (patch)
treee82b1189a2784ff2b4b3fa940266608a8b14e1e1 /shared
parentdbf5fdd6e43fd63109655c66cfb628a352504ac6 (diff)
s nix-cacher: split to shack bincache/acng
Diffstat (limited to 'shared')
-rw-r--r--shared/2configs/shack/bincache.nix6
-rw-r--r--shared/2configs/shack/nix-cacher.nix3
2 files changed, 9 insertions, 0 deletions
diff --git a/shared/2configs/shack/bincache.nix b/shared/2configs/shack/bincache.nix
new file mode 100644
index 0000000..9cd7fae
--- /dev/null
+++ b/shared/2configs/shack/bincache.nix
@@ -0,0 +1,6 @@
+{...}:
+{
+ nix.binaryCaches = [
+ "http://wolf.shack:3142/nixos"
+ ];
+}
diff --git a/shared/2configs/shack/nix-cacher.nix b/shared/2configs/shack/nix-cacher.nix
index 4fcbf3a..8feeca9 100644
--- a/shared/2configs/shack/nix-cacher.nix
+++ b/shared/2configs/shack/nix-cacher.nix
@@ -4,6 +4,9 @@ let
cfg = config.krebs.apt-cacher-ng;
in
{
+ imports = [
+ ./bincache.nix
+ ];
krebs.apt-cacher-ng = {
enable = true;
port = 3142;