nixos-config/linux/singularity/network.nix

20 lines
493 B
Nix

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