mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 02:13:55 -05:00
waybar: only enable ppd and battery module on laptopMode
This commit is contained in:
parent
5cae43ef51
commit
d96a001956
|
@ -256,7 +256,11 @@ in {
|
|||
};
|
||||
|
||||
"group/hardware" = {
|
||||
modules = ["pulseaudio" "bluetooth" "network" "power-profiles-daemon" "battery"];
|
||||
modules =
|
||||
["pulseaudio" "bluetooth" "network"]
|
||||
++ lib.optionals (cfg.laptopMode)
|
||||
["power-profiles-daemon" "battery"];
|
||||
|
||||
orientation = "horizontal";
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue