nixos-modules: set LimitRSS for hunter and gatherer

This commit is contained in:
Astro 2022-11-17 00:10:06 +01:00
parent 4a88c29f42
commit 487bb692fa
1 changed files with 2 additions and 0 deletions

View File

@ -130,6 +130,7 @@ in
LockPersonality = true;
MemoryDenyWriteExecute = true;
LimitNOFile = limitNOFILE;
LimitRSS = "2G:4G";
};
};
@ -158,6 +159,7 @@ in
MemoryDenyWriteExecute = true;
LimitNOFile = limitNOFILE;
WorkingDirectory = "${pkgs.caveman-gatherer}/share/caveman/gatherer";
LimitRSS = "512M:1G";
};
};