From 19f734e6228a31ba8c9b5bb5ff30114db1f623a9 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Thu, 12 Jun 2025 13:17:26 +0200 Subject: [PATCH] Enable nix cache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Aleix Boné Reviewed-by: Aleix Roca Nonell --- m/tent/configuration.nix | 1 + m/tent/nix-serve.nix | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 m/tent/nix-serve.nix diff --git a/m/tent/configuration.nix b/m/tent/configuration.nix index c041683..63f1f66 100644 --- a/m/tent/configuration.nix +++ b/m/tent/configuration.nix @@ -8,6 +8,7 @@ ../module/ssh-hut-extern.nix ./monitoring.nix ./nginx.nix + ./nix-serve.nix ]; # Select the this using the ID to avoid mismatches diff --git a/m/tent/nix-serve.nix b/m/tent/nix-serve.nix new file mode 100644 index 0000000..35ccd72 --- /dev/null +++ b/m/tent/nix-serve.nix @@ -0,0 +1,16 @@ +{ config, ... }: + +{ + age.secrets.nixServe.file = ../../secrets/nix-serve.age; + + services.nix-serve = { + enable = true; + # Only listen locally, as we serve it via ssh + bindAddress = "127.0.0.1"; + port = 5000; + + secretKeyFile = config.age.secrets.nixServe.path; + # Public key: + # jungle.bsc.es:pEc7MlAT0HEwLQYPtpkPLwRsGf80ZI26aj29zMw/HH0= + }; +}