fix(kubevirt): use the correct earlyoom option name (#281)

services.earlyoom.freeMemThresholdPercent does not exist in this nixpkgs; the module exposes freeMemThreshold/freeSwapThreshold. Just enable earlyoom with its defaults (trigger at 10% free mem/swap).
This commit is contained in:
ryan4yin | 二花 authored and GitHub committed 2026-09-21 01:41:26 +08:00
1 parent 12505b415c
commit 1c3b826c73
1 file changed
+2 -5
+2 -5
View File
@@ -58,11 +58,8 @@ in
# zram itself is provided by modules/nixos/base/zram.nix (enabled by default).
# Kill the greediest process before the host starts thrashing / gets OOM-killed.
services.earlyoom = {
enable = true;
freeMemThresholdPercent = 5;
freeSwapThresholdPercent = 5;
};
# (defaults: trigger at 10% free mem / swap, kill hard at half of that.)
services.earlyoom.enable = true;
environment.systemPackages = with pkgs; [
# Validate Hardware Virtualization Support via: