nixos/power-profiles-daemon: Add assertion with auto-cpufreq

auto-cpufreq is similar to tlp in that it shouldn't be run with
power-profiles-daemon.  There functionality can conflict and bugs can
show up.  On my system this materialized by auto-cpufreq frequently
shutting down, but there may be other consequences.

This change follows the same pattern as the tlp assertion
This commit is contained in:
Stu Small 2024-06-08 12:54:56 -06:00
parent b0f9cc0195
commit 12bd55a1a3

View File

@ -39,6 +39,12 @@ in
which conflicts with services.tlp.enable = true;
'';
}
{ assertion = !config.services.auto-cpufreq.enable;
message = ''
You have set services.power-profiles-daemon.enable = true;
which conflicts with services.auto-cpufreq.enable = true;
'';
}
];
environment.systemPackages = [ cfg.package ];