feat(x86_64-linux): increase file descriptor and memory limits

Added configuration to increase the system-wide file descriptor limit and memory lock limit. This change involves updating systemd and PAM settings to enhance resource management.
This commit is contained in:
Harald Hoyer 2024-10-23 10:16:01 +02:00
parent 96aa5953e6
commit d2f9061752

View file

@ -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";
}