From 487bb692fa90558db45430de9963d9bf6d57e320 Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 17 Nov 2022 00:10:06 +0100 Subject: [PATCH] nixos-modules: set LimitRSS for hunter and gatherer --- nixos-module.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos-module.nix b/nixos-module.nix index 85e08b0..f726b03 100644 --- a/nixos-module.nix +++ b/nixos-module.nix @@ -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"; }; };