feat: increase NOFILE and MEMLOCK limits in sgx-nixos

Added systemd and PAM configuration to set NOFILE and MEMLOCK limits to 32768. This change enhances the system's capability to handle a larger number of open files and memory-locked segments.
This commit is contained in:
Harald Hoyer 2024-10-23 10:21:20 +02:00
parent 707550547e
commit cc59bd6567

View file

@ -56,5 +56,12 @@ with lib.metacfg;
powerManagement.cpuFreqGovernor = "ondemand"; powerManagement.cpuFreqGovernor = "ondemand";
systemd.user.extraConfig = "DefaultLimitNOFILE=32768";
security.pam.loginLimits = [
{ domain = "*"; item = "nofile"; type = "-"; value = "32768"; }
{ domain = "*"; item = "memlock"; type = "-"; value = "32768"; }
];
system.stateVersion = "23.11"; system.stateVersion = "23.11";
} }