mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-06 18:08:38 +08:00
pc/laptop: fix evaluation on 20.09 (#270)
This commit is contained in:
@@ -6,5 +6,6 @@
|
|||||||
# Gnome 40 introduced a new way of managing power, without tlp.
|
# Gnome 40 introduced a new way of managing power, without tlp.
|
||||||
# However, these 2 services clash when enabled simultaneously.
|
# However, these 2 services clash when enabled simultaneously.
|
||||||
# https://github.com/NixOS/nixos-hardware/issues/260
|
# https://github.com/NixOS/nixos-hardware/issues/260
|
||||||
services.tlp.enable = lib.mkDefault (!config.services.power-profiles-daemon.enable);
|
services.tlp.enable = lib.mkDefault ((lib.versionOlder (lib.versions.majorMinor lib.version) "21.05")
|
||||||
|
|| !config.services.power-profiles-daemon.enable);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user