Update earlyoom settings in default.nix

- Add earlyoom configuration to hosts/semita/default.nix
  - Enable earlyoom to activate when system RAM drops below 5% free
This commit is contained in:
Sam 2025-01-10 10:10:57 +00:00
parent 53fe037aaf
commit 60f55565bc
1 changed files with 5 additions and 0 deletions

View File

@ -86,6 +86,11 @@ in {
dpi = 144;
upscaleDefaultCursor = true;
};
# enable oom killer when system ram drops below 5% free
earlyoom = {
enable = true;
freeMemThreshold = 5; # <%5 free
};
};
environment.variables = {