2017-12-27 07:46:06 +00:00
|
|
|
{ config, lib, ... }:
|
2017-12-24 23:21:05 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ../. ];
|
|
|
|
|
2021-05-26 16:54:50 +00:00
|
|
|
# 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
|
2021-05-30 20:10:22 +00:00
|
|
|
services.tlp.enable = lib.mkDefault ((lib.versionOlder (lib.versions.majorMinor lib.version) "21.05")
|
|
|
|
|| !config.services.power-profiles-daemon.enable);
|
2017-12-24 23:21:05 +00:00
|
|
|
}
|