nixos-config/common/networking/firewall.nix
2024-09-03 23:07:50 -04:00

18 lines
289 B
Nix

{
config,
lib,
pkgs,
inputs,
outputs,
...
}: {
options = {
firewall.enable = lib.mkEnableOption "Enable the Firewall";
};
config = lib.mkIf config.firewall.enable {
networking.nftables.enable = true;
networking.firewall = {
enable = true;
};
};
}