pc/laptop: fix evaluation on 20.09 (#270)
This commit is contained in:
parent
684ae160a6
commit
3fc630f84c
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue