nixosMod: add improvedDefaults/power-profiles-daemon

main
Felix Stupp 1 year ago
parent 4d0842edab
commit cd74d25c68
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -13,6 +13,7 @@ in
./command-not-found.nix
./firefox.nix
./networking.nix
./power-profiles-daemon.nix
./powertop-tlp.nix
./sshAuthorize.nix
./wayland.nix

@ -0,0 +1,10 @@
{ config, lib, ... }:
let
cfg = config.x-banananetwork.improvedDefaults;
tlpEn = config.services.tlp.enable;
in
{
# power-profiles-daemon gets enabled by most display managers
# so this suppresses this if another daemon is enabled
config = lib.mkIf cfg.enable { services.power-profiles-daemon.enable = lib.mkIf tlpEn false; };
}
Loading…
Cancel
Save