treewide: remove 21.05 compat code

This commit is contained in:
Sandro Jäckel 2026-01-11 09:54:22 +01:00
parent 6366bcfdab
commit b88c9d742a
No known key found for this signature in database
GPG key ID: 236B6291555E8401
2 changed files with 2 additions and 11 deletions

View file

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