mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-02 22:13:29 +01:00
replace tlp with power-profiles-daemon
TLP is often no longer the best choice since firmware provides power profiles instead. That's why we are removing TLP as the default option. We may want to bring back TLP to some old hardware if it makes sense i.e. certain thinkpad modules.
This commit is contained in:
1 parent
e4c6ee69e7
commit
e60c66bd0b
10 files changed
+5
-43
No files matched your search
@@ -1,13 +1,6 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
{ lib, config, ... }:
|
||||
{
|
||||
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 = lib.mkDefault (
|
||||
(lib.versionOlder (lib.versions.majorMinor lib.version) "21.05")
|
||||
|| !config.services.power-profiles-daemon.enable
|
||||
);
|
||||
config.services.power-profiles-daemon.enable = lib.mkDefault (!config.services.tlp.enable);
|
||||
}
|
||||
Reference in new issue
Block a user