nixos-hardware/common/pc/laptop/default.nix
2021-05-26 19:00:01 +02:00

15 lines
374 B
Nix

{ config, lib, ... }:
{
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
(if config.services.power-profiles-daemon.enable == true then
false
else
true);
}