From cb4e16ddff3f4a9f7c9d378758cd42bfe713728e Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Mon, 11 Apr 2016 17:53:31 +0000 Subject: [PATCH] limits --- packages/configuration.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/configuration.nix b/packages/configuration.nix index 74d6ca9..ad78424 100644 --- a/packages/configuration.nix +++ b/packages/configuration.nix @@ -18,11 +18,14 @@ with lib; # Other vim git rsync tmux ]; + security.pam.loginLimits = [ + # Prevent accidental fork bombs. + { domain = "*"; item = "nproc"; type = "hard"; value = "10"; } + ]; services.openssh = { enable = true; passwordAuthentication = false; }; - users.extraUsers.user = { name = "tlevine"; group = "users";