nixos/systemd-oomd: disable systemd-oomd when enableUnifiedCgroupHierarchy is false

fixup for https://github.com/NixOS/nixpkgs/pull/203596
This commit is contained in:
Aaron Andersen 2023-03-08 18:39:12 -05:00
parent ea0070a518
commit 374fc068ec

View File

@ -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) {