NixServerConfig/module/newt.nix
2025-12-21 20:37:17 +01:00

16 lines
318 B
Nix

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