e4ce746d5b
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.
15 lines
358 B
Nix
15 lines
358 B
Nix
{ config, lib, ... }:
|
|
|
|
{
|
|
imports = [ ../. ];
|
|
|
|
# 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;
|
|
}
|