From 7cef3a3d47075fc617bb0cc8df3d8eef1a3730f6 Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Sun, 13 Oct 2024 14:18:18 +0200 Subject: [PATCH] earlyoom --- modules/desktop/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix index 2adf62c..9ff9eef 100644 --- a/modules/desktop/default.nix +++ b/modules/desktop/default.nix @@ -35,6 +35,11 @@ in { flatpak.enable = true; fstrim.enable = true; + + earlyoom = { + enable = true; + freeMemThreshold = 5; + }; }; # Enable sound with pipewire.