Files
nixos-dotfiles/modules/networking/core/firewall.nix
T
2026-07-12 11:15:42 -05:00

15 lines
238 B
Nix

{ config, ... }:
let
cfg = config.workstation.networking.core.firewall;
in
{
networking.firewall = {
enable = true;
allowPing = cfg.allowPing;
allowedTCPPorts = cfg.ports.tcp;
allowedUDPPorts = cfg.ports.udp;
};
}