mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-09 16:16:21 +01:00
19 lines
461 B
Nix
19 lines
461 B
Nix
{
|
|
config,
|
|
lib,
|
|
options,
|
|
...
|
|
}:
|
|
|
|
{
|
|
imports = [ ../. ];
|
|
|
|
# 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 (
|
|
!(options.services ? power-profiles-daemon && config.services.power-profiles-daemon.enable)
|
|
&& !(options.services ? tuned && config.services.tuned.enable)
|
|
);
|
|
}
|