Skip to content

Commit 374fc06

Browse files
committed
nixos/systemd-oomd: disable systemd-oomd when enableUnifiedCgroupHierarchy is false
fixup for #203596
1 parent ea0070a commit 374fc06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nixos/modules/system/boot/systemd.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ in
614614

615615
# Avoid potentially degraded system state due to
616616
# "Userspace Out-Of-Memory (OOM) Killer was skipped because of a failed condition check (ConditionControlGroupController=v2)."
617-
systemd.services.systemd-oomd.enable = mkIf (!cfg.enableUnifiedCgroupHierarchy) false;
617+
systemd.oomd.enable = mkIf (!cfg.enableUnifiedCgroupHierarchy) false;
618618

619619
services.logrotate.settings = {
620620
"/var/log/btmp" = mapAttrs (_: mkDefault) {

0 commit comments

Comments
 (0)