mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-17 04:08:30 +00:00
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:
parent
b0f9cc0195
commit
12bd55a1a3
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user