diff options
author | Profpatsch <mail@profpatsch.de> | 2021-02-04 10:31:16 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2021-02-04 10:39:20 +0100 |
commit | 956267abb82174b94b8e8d19dd7b5de2037073d7 (patch) | |
tree | 8f84c7e75654d2d15f205ace8db942ba394adf50 /machines/profpatsch/base-workstation.nix | |
parent | 2d012117ea02c09a2ef4c90853caaa2bdfa25bc1 (diff) |
machines/profpatsch/base-workstation: enable earlyoom
Diffstat (limited to 'machines/profpatsch/base-workstation.nix')
-rw-r--r-- | machines/profpatsch/base-workstation.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/machines/profpatsch/base-workstation.nix b/machines/profpatsch/base-workstation.nix index 42ed0311..dab68006 100644 --- a/machines/profpatsch/base-workstation.nix +++ b/machines/profpatsch/base-workstation.nix @@ -42,6 +42,14 @@ in { # Enables drivers, acpi, power management vuizvui.hardware.thinkpad.enable = true; + # the kernel OOM is not good enough without swap, + # and I don’t like swap. This kills the most hoggy + # processes when the system goes under a free space limit + services.earlyoom = { + enable = true; + freeMemThreshold = 5; # <5% free + }; + ################### # Graphical System |