2017-12-27 02:46:06 -05:00
|
|
|
{ config, lib, ... }:
|
2017-12-24 18:21:05 -05:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ../. ];
|
|
|
|
|
2021-05-26 12:54:50 -04: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-26 13:00:01 -04:00
|
|
|
services.tlp.enable = lib.mkDefault
|
|
|
|
(if config.services.power-profiles-daemon.enable == true then
|
2021-05-26 12:54:50 -04:00
|
|
|
false
|
|
|
|
else
|
2021-05-26 13:00:01 -04:00
|
|
|
true);
|
2017-12-24 18:21:05 -05:00
|
|
|
}
|