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

This commit is contained in:
Jörg Thalheim 2021-05-30 22:10:22 +02:00 committed by GitHub
parent 684ae160a6
commit 3fc630f84c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
}