diff --git a/hosts/quitte/configuration.nix b/hosts/quitte/configuration.nix index c56ca8c..32c369e 100644 --- a/hosts/quitte/configuration.nix +++ b/hosts/quitte/configuration.nix @@ -29,6 +29,15 @@ git ]; + # prevent fork bombs + security.pam.loginLimits = [ + { + domain = "@users"; + item = "nproc"; + type = "hard"; + value = "2000"; + } + ]; # Enable the OpenSSH daemon. services.openssh.enable = true; services.openssh.settings.PermitRootLogin = "yes";