mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:36 +01:00
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:
1 parent
12505b415c
commit
1c3b826c73
1 file changed
+2
-5
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user