diff --git a/systems/x86_64-linux/x1/default.nix b/systems/x86_64-linux/x1/default.nix index a78acb8..7cf7930 100644 --- a/systems/x86_64-linux/x1/default.nix +++ b/systems/x86_64-linux/x1/default.nix @@ -47,5 +47,12 @@ with lib.metacfg; services.trezord.enable = true; + systemd.user.extraConfig = "DefaultLimitNOFILE=32000"; + + security.pam.loginLimits = [ + { domain = "*"; item = "nofile"; type = "-"; value = "32768"; } + { domain = "*"; item = "memlock"; type = "-"; value = "32768"; } + ]; + system.stateVersion = "23.11"; }