summary refs log tree commit diff
path: root/machines/bismuth/default.nix
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-10-22 17:49:08 +0200
committerMel <einebeere@gmail.com>2024-10-22 17:49:08 +0200
commitdd47581a5f347ec8070abbd5eee690d599ee95ed (patch)
tree25504e4d96719739773929f7edc2b3c4d91a499f /machines/bismuth/default.nix
parentc8a01f9753cc0c074c08855c9a2cb87ed75f369c (diff)
downloadminerals-dd47581a5f347ec8070abbd5eee690d599ee95ed.tar.zst
minerals-dd47581a5f347ec8070abbd5eee690d599ee95ed.zip
Create nix store binary cache from bismuth for slower machines
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'machines/bismuth/default.nix')
-rw-r--r--machines/bismuth/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/machines/bismuth/default.nix b/machines/bismuth/default.nix
index 8dbdd14..2663703 100644
--- a/machines/bismuth/default.nix
+++ b/machines/bismuth/default.nix
@@ -13,6 +13,14 @@
 
   networking.hostName = "Bismuth";
 
+  # run binary cache for slower machines
+  services.nix-serve = {
+    enable = true;
+    # note: can we get this value from somewhere?
+    bindAddress = "100.85.58.31"; # bismuth tailnet ip
+    secretKeyFile = "/var/bismuth-cache.pem";
+  };
+
   # expose vm web interface to tailnet
   services.tailscale.extraUpFlags = [
     "--advertise-routes=192.168.122.100/32"