From e9f920f57e46fb7cb4c3f09f299160e2dd5757b6 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Wed, 1 May 2024 12:27:13 +0200 Subject: [PATCH] start a cache server on all pi --- common.nix | 8 ++++++++ init/chache.pem | 1 + systems/club-mate/default.nix | 6 ------ 3 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 init/chache.pem diff --git a/common.nix b/common.nix index 78b96db..0aa407b 100644 --- a/common.nix +++ b/common.nix @@ -19,12 +19,20 @@ users.mutableUsers = false; + services.nix-serve = { + enable = true; + openFirewall = true; + secretKeyFile = "/var/cache-priv-key.pem"; + }; + nix = { settings = { substituters = [ "https://cache.nixos.org" "https://nix-community.cachix.org" + #"http://192.168.88.251:5000" "http://192.168.88.252:5000" + #"http://192.168.88.253:5000" ]; trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" diff --git a/init/chache.pem b/init/chache.pem new file mode 100644 index 0000000..d19be64 --- /dev/null +++ b/init/chache.pem @@ -0,0 +1 @@ +binarycache.example.com:jSyBgFtsYVCEyuoSAf9ItSesIMlyLxoefDuVTGMlgHp9s5mSOZi352nGVJluE01PRY4ACknVku8EF9CROwEyKw== diff --git a/systems/club-mate/default.nix b/systems/club-mate/default.nix index b40ebcb..86345a7 100644 --- a/systems/club-mate/default.nix +++ b/systems/club-mate/default.nix @@ -76,12 +76,6 @@ }; }; - services.nix-serve = { - enable = true; - openFirewall = true; - secretKeyFile = "/var/cache-priv-key.pem"; - }; - environment.systemPackages = with pkgs; [ grim # screenshot functionality slurp # screenshot functionality