treewide: remove 21.05 compat code
This commit is contained in:
parent
6366bcfdab
commit
b88c9d742a
2 changed files with 2 additions and 11 deletions
|
|
@ -3,11 +3,5 @@
|
|||
{
|
||||
imports = [ ../. ];
|
||||
|
||||
# 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 (
|
||||
(lib.versionOlder (lib.versions.majorMinor lib.version) "21.05")
|
||||
|| !config.services.power-profiles-daemon.enable
|
||||
);
|
||||
services.tlp.enable = lib.mkDefault (!config.services.power-profiles-daemon.enable);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue