Update common/pc/laptop/default.nix

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
This commit is contained in:
Bryan Honof 2021-05-27 00:15:49 +02:00 committed by GitHub
parent 2bc26b3c5c
commit 1fe5b7686d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -6,9 +6,5 @@
# 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);
services.tlp.enable = lib.mkDefault !config.services.power-profiles-daemon.enable;
}