diff options
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 |