NixServerConfig/module/newt.nix
2025-12-22 02:12:52 +01:00

16 lines
324 B
Nix

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