Skip to content

Commit 3fc630f

Browse files
authored
pc/laptop: fix evaluation on 20.09 (#270)
1 parent 684ae16 commit 3fc630f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

common/pc/laptop/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
# Gnome 40 introduced a new way of managing power, without tlp.
77
# However, these 2 services clash when enabled simultaneously.
88
# https://github.com/NixOS/nixos-hardware/issues/260
9-
services.tlp.enable = lib.mkDefault (!config.services.power-profiles-daemon.enable);
9+
services.tlp.enable = lib.mkDefault ((lib.versionOlder (lib.versions.majorMinor lib.version) "21.05")
10+
|| !config.services.power-profiles-daemon.enable);
1011
}

0 commit comments

Comments
 (0)