From 374fc068ec1fe11c9f638f5fbf1d5cadb855f938 Mon Sep 17 00:00:00 2001 From: Aaron Andersen Date: Wed, 8 Mar 2023 18:39:12 -0500 Subject: [PATCH] nixos/systemd-oomd: disable systemd-oomd when enableUnifiedCgroupHierarchy is false fixup for https://github.com/NixOS/nixpkgs/pull/203596 --- nixos/modules/system/boot/systemd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 679a663362b..8b20f9a7e87 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -614,7 +614,7 @@ in # Avoid potentially degraded system state due to # "Userspace Out-Of-Memory (OOM) Killer was skipped because of a failed condition check (ConditionControlGroupController=v2)." - systemd.services.systemd-oomd.enable = mkIf (!cfg.enableUnifiedCgroupHierarchy) false; + systemd.oomd.enable = mkIf (!cfg.enableUnifiedCgroupHierarchy) false; services.logrotate.settings = { "/var/log/btmp" = mapAttrs (_: mkDefault) {