From 85e4fc50dbb464bef483dcb421d2ee6f5ffcbcee Mon Sep 17 00:00:00 2001 From: Arian van Putten Date: Wed, 31 Jul 2024 12:07:14 +0200 Subject: [PATCH] nixos/ananicy: force unified cgroup hierachy This breaks the functionality of this module but I don't see a way around it as 256 dropped support. https://gitlab.com/ananicy-cpp/ananicy-cpp/-/issues/40 --- nixos/modules/services/misc/ananicy.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nixos/modules/services/misc/ananicy.nix b/nixos/modules/services/misc/ananicy.nix index f7ab41fcce61..c38d3ed6e394 100644 --- a/nixos/modules/services/misc/ananicy.nix +++ b/nixos/modules/services/misc/ananicy.nix @@ -116,7 +116,7 @@ in } // (if ((lib.getName cfg.package) == (lib.getName pkgs.ananicy-cpp)) then { # https://gitlab.com/ananicy-cpp/ananicy-cpp/-/blob/master/src/config.cpp#L12 loglevel = mkOD "warn"; # default is info but its spammy - cgroup_realtime_workaround = mkOD config.systemd.enableUnifiedCgroupHierarchy; + cgroup_realtime_workaround = true; log_applied_rule = mkOD false; } else { # https://github.com/Nefelim4ag/Ananicy/blob/master/ananicy.d/ananicy.conf @@ -125,8 +125,6 @@ in }); systemd = { - # https://gitlab.com/ananicy-cpp/ananicy-cpp/#cgroups applies to both ananicy and -cpp - enableUnifiedCgroupHierarchy = mkDefault false; packages = [ cfg.package ]; services."${servicename}" = { wantedBy = [ "default.target" ];