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:
parent
96aa5953e6
commit
d2f9061752
|
@ -47,5 +47,12 @@ with lib.metacfg;
|
||||||
|
|
||||||
services.trezord.enable = true;
|
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";
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue