nichts/modules/system/os/networking/firewall.nix
2025-05-09 09:37:36 +02:00

18 lines
235 B
Nix

{
config,
lib,
pkgs,
...
}: let
in {
networking = {
# use nftables over iptables
nftables.enable = true;
firewall = {
enable = true;
allowPing = false;
logReversePathDrops = true;
};
};
}