nixos-config/linux/singularity/network.nix

28 lines
647 B
Nix
Raw Normal View History

2024-08-31 23:53:22 -07:00
{config, ...}: {
2023-11-27 13:19:16 -08:00
networking = {
2024-08-31 23:53:22 -07:00
firewall = with config.constants.port; {
allowedTCPPorts = [coturn coturn-tls http https];
allowedUDPPorts = [coturn coturn-tls];
allowedUDPPortRanges = [
{
from = coturn-relay-udp-min;
to = coturn-relay-udp-max;
}
];
};
2023-10-09 10:44:07 -07:00
hostId = "2cadb253";
2023-11-14 20:56:38 -08:00
nftables.enable = true;
2023-10-09 10:44:07 -07:00
};
2023-11-14 20:56:38 -08:00
services = {
cloudflare-dyndns = {
enable = true;
2024-08-31 23:53:22 -07:00
apiTokenFile = config.sops.secrets.cloudflare.path;
2023-11-14 20:56:38 -08:00
domains = builtins.attrNames config.services.caddy.virtualHosts;
2023-10-09 10:44:07 -07:00
};
2024-03-02 15:10:23 -08:00
openssh.enable = true;
2023-10-09 10:44:07 -07:00
};
2024-08-31 23:53:22 -07:00
sops.secrets.cloudflare = {};
2023-10-09 10:44:07 -07:00
}