pc/laptop: fix evaluation on 20.09 (#270)

This commit is contained in:
Jörg Thalheim authored and GitHub committed 2021-05-30 21:10:22 +01:00
1 parent 684ae160a6
commit 3fc630f84c
1 file changed
+2 -1
+2 -1
View File
@@ -6,5 +6,6 @@
# 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 (!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);
}