From 2bc26b3c5c571b3609e3a50f35e67419c7688085 Mon Sep 17 00:00:00 2001 From: Bryan Honof Date: Wed, 26 May 2021 19:00:01 +0200 Subject: [PATCH] Add lib.mkDefault to the statement --- common/pc/laptop/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/pc/laptop/default.nix b/common/pc/laptop/default.nix index b1e91ad..87bdca4 100644 --- a/common/pc/laptop/default.nix +++ b/common/pc/laptop/default.nix @@ -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); }