nix-serve added

This commit is contained in:
2026-05-03 20:04:25 +03:00
parent 2df6ee7c3a
commit 397bf49326
5 changed files with 46 additions and 2 deletions
+24
View File
@@ -0,0 +1,24 @@
{
config,
lib,
pkgs,
...
}:
{
services = {
nix-serve = {
enable = true;
openFirewall = true;
port = 5000;
bindAddress = "0.0.0.0";
secretKeyFile = config.sops.secrets.private-key.path;
};
};
sops.secrets = {
private-key = {
key = "private-key";
sopsFile = ./secrets/nix-serve.yaml;
mode = "0600";
};
};
}