diff --git a/configuration.nix b/configuration.nix index 352899c..ff07f0f 100644 --- a/configuration.nix +++ b/configuration.nix @@ -44,6 +44,16 @@ cpuFreqGovernor = "powersave"; }; + # https://github.com/NixOS/nixpkgs/issues/101459#issuecomment-758306434 + security.pam.loginLimits = [ + { + domain = "*"; + type = "soft"; + item = "nofile"; + value = "4096"; + } + ]; + nix = { # optimize the store optimise.automatic = true;