NixServerConfig/module/newt.nix
2025-12-23 18:03:17 +01:00

15 lines
308 B
Nix

{config,lib, ... }:
{
services.newt = {
environmentFile = "/etc/newt.env";
settings = {
endpoint = "https://pangolin.wateir.fr";
};
};
networking.firewall = lib.mkIf config.services.newt.enable {
allowedTCPPorts = [ 80 443 ];
allowedUDPPorts = [ 51820 21820 ];
};
}