mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-01 13:33:30 +01:00
Add lib.mkDefault to the statement
This commit is contained in:
1 file changed
+3
-3
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user