Add lib.mkDefault to the statement

This commit is contained in:
Bryan Honof 2021-05-26 19:00:01 +02:00
parent e4ce746d5b
commit 2bc26b3c5c
No known key found for this signature in database
GPG Key ID: D357EDE705510390
1 changed files with 3 additions and 3 deletions

View File

@ -6,9 +6,9 @@
# 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 =
if config.services.power-profiles-daemon.enable == true then
services.tlp.enable = lib.mkDefault
(if config.services.power-profiles-daemon.enable == true then
false
else
true;
true);
}