From 60f55565bcc7827fcd3c9e762889147fe6ced76d Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 10 Jan 2025 10:10:57 +0000 Subject: [PATCH] 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 --- hosts/semita/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/semita/default.nix b/hosts/semita/default.nix index bd8d7e5..04734d1 100644 --- a/hosts/semita/default.nix +++ b/hosts/semita/default.nix @@ -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 = {