{ # Classic deny all networking.nftables.enable = true; networking.firewall = { enable = true; allowedTCPPorts = [ ]; allowedUDPPorts = [ ]; }; # No fork bomb environment.etc."security/limits.conf".text = '' * soft nproc 2000 * hard nproc 4000 ''; # Wheel group may edit the configuration. systemd.tmpfiles.rules = [ "Z! /etc/nixos 4070 root wheel" "A! /etc/nixos - - - - d:u::rwx,d:g::-,d:g:wheel:rwx,d:mask:rwx" ]; }