nixos-config/linux/singularity/network.nix
2025-12-14 17:57:15 -08:00

18 lines
431 B
Nix

{config, ...}: {
networking = {
firewall.allowedTCPPorts = with config.constants.port; [http https];
hostId = "2cadb253";
nftables.enable = true;
};
services = {
cloudflare-dyndns = {
enable = true;
apiTokenFile = config.sops.secrets.cloudflare.path;
domains = builtins.attrNames config.services.caddy.virtualHosts;
};
openssh.enable = true;
};
sops.secrets.cloudflare = {};
}