From 9ad115e5f30b0c57487b008bb4bbc7e41ffa0d91 Mon Sep 17 00:00:00 2001 From: Izorkin Date: Sun, 4 Feb 2024 19:54:02 +0300 Subject: nixos/libvirt: changing process priority for oom killer --- nixos/modules/virtualisation/libvirtd.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'nixos/modules') diff --git a/nixos/modules/virtualisation/libvirtd.nix b/nixos/modules/virtualisation/libvirtd.nix index 217242a8fbd2..b8f952d3ba0e 100644 --- a/nixos/modules/virtualisation/libvirtd.nix +++ b/nixos/modules/virtualisation/libvirtd.nix @@ -466,6 +466,7 @@ in Type = "notify"; KillMode = "process"; # when stopping, leave the VMs alone Restart = "no"; + OOMScoreAdjust = "-999"; }; restartIfChanged = false; }; -- cgit 1.4.1