mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-23 11:29:42 +01:00
Add lib.mkDefault to the statement
This commit is contained in:
parent
e4ce746d5b
commit
2bc26b3c5c
1 changed files with 3 additions and 3 deletions
|
@ -6,9 +6,9 @@
|
||||||
# Gnome 40 introduced a new way of managing power, without tlp.
|
# Gnome 40 introduced a new way of managing power, without tlp.
|
||||||
# However, these 2 services clash when enabled simultaneously.
|
# However, these 2 services clash when enabled simultaneously.
|
||||||
# https://github.com/NixOS/nixos-hardware/issues/260
|
# https://github.com/NixOS/nixos-hardware/issues/260
|
||||||
services.tlp.enable =
|
services.tlp.enable = lib.mkDefault
|
||||||
if config.services.power-profiles-daemon.enable == true then
|
(if config.services.power-profiles-daemon.enable == true then
|
||||||
false
|
false
|
||||||
else
|
else
|
||||||
true;
|
true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue