nixos-infra/services/bind/firewall.nix
2026-04-01 09:54:15 +03:00

15 lines
197 B
Nix

{
config,
lib,
...
}:
let
cfg = config.machine.bind;
in
with lib;
mkIf cfg.enable {
networking.firewall = {
allowedTCPPorts = [ cfg.port ];
allowedUDPPorts = [ cfg.port ];
};
}