Files
nixos-setup/hosts/hl-bigbox2/services/nix-serve.nix
T
2026-10-13 19:52:27 -04:00

17 lines
340 B
Nix

{ ... }:
let
ports = {
nixServe = 5000;
};
openPorts = builtins.attrValues ports;
in
{
services.nix-serve = {
enable = true;
secretKeyFile = "/home/ari/cache-keys/cache-priv-key.pem";
port = ports.nixServe;
};
networking.firewall.allowedUDPPorts = openPorts;
networking.firewall.allowedTCPPorts = openPorts;
}