From 175614db404815c52a06b36fcc9cc82c495b6c38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vili=20Sinerv=C3=A4?= Date: Fri, 6 Sep 2024 11:25:51 +0300 Subject: [PATCH] Try to avoid 'too many open files' error --- base.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/base.nix b/base.nix index a6ec8c6..51bdf70 100644 --- a/base.nix +++ b/base.nix @@ -152,6 +152,15 @@ users.mutableUsers = false; # Force all user management to happen throught nix-files + security.pam.loginLimits = [ + { + domain = "*"; + type = "soft"; + item = "nofile"; + value = "8192"; + } + ]; + boot.loader = { systemd-boot.enable = true; efi.canTouchEfiVariables = true;