mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-23 11:29:42 +01:00
Add check for power-profiles-daemon.enable
Gnome 40 now uses power-profile-daemon https://gitlab.freedesktop.org/hadess/power-profiles-daemon , which clashes with tlp. This check will disable tlp whenever it finds that the power-profiles-daemon is activated.
This commit is contained in:
parent
c4399b921f
commit
e4ce746d5b
1 changed files with 8 additions and 1 deletions
|
@ -3,5 +3,12 @@
|
||||||
{
|
{
|
||||||
imports = [ ../. ];
|
imports = [ ../. ];
|
||||||
|
|
||||||
services.tlp.enable = lib.mkDefault true;
|
# Gnome 40 introduced a new way of managing power, without tlp.
|
||||||
|
# However, these 2 services clash when enabled simultaneously.
|
||||||
|
# https://github.com/NixOS/nixos-hardware/issues/260
|
||||||
|
services.tlp.enable =
|
||||||
|
if config.services.power-profiles-daemon.enable == true then
|
||||||
|
false
|
||||||
|
else
|
||||||
|
true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue