From 0aa846c31c70ba61291e4657c3d9051cb7bb0b6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Bon=C3=A9?= Date: Mon, 6 Oct 2025 14:45:05 +0200 Subject: [PATCH] weasel: add custom nix-serve --- m/weasel/configuration.nix | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/m/weasel/configuration.nix b/m/weasel/configuration.nix index 63c79671..0b9f1d52 100644 --- a/m/weasel/configuration.nix +++ b/m/weasel/configuration.nix @@ -1,4 +1,4 @@ -{ lib, ... }: +{ lib, pkgs, ... }: { imports = [ @@ -33,4 +33,21 @@ } ]; }; + services.nix-serve = { + enable = true; + # Only listen locally, as we serve it via ssh + bindAddress = "127.0.0.1"; + port = 5000; + package = pkgs.nix-serve-ng.overrideAttrs (oldAttrs: { + src = pkgs.fetchgit { + url = "https://jungle.bsc.es/git/abonerib/nix-serve-ng.git"; + hash = ""; + }; + }); + + # secretKeyFile = config.age.secrets.nixServe.path; + # Public key: + # jungle.bsc.es:pEc7MlAT0HEwLQYPtpkPLwRsGf80ZI26aj29zMw/HH0= + }; + }