dotfiles/flakes/de_plasma/home_manager/panel.nix
RingOfStorms (Joshua Bell) 7dfa665b73 fix hoem manager config access
2025-11-30 00:29:32 -06:00

28 lines
503 B
Nix

{
osConfig,
lib,
...
}:
let
cfg = osConfig.ringofstorms.dePlasma;
inherit (lib) mkIf;
mkPanel =
{
location ? cfg.panel.location,
height ? cfg.panel.height,
opacity ? cfg.panel.opacity,
widgets ? cfg.panel.widgets,
}:
{
location = location;
height = height;
opacity = opacity;
widgets = widgets;
};
in
{
options = { };
config = mkIf (cfg.enable && cfg.panel.enabled) {
programs.plasma.panels = [ (mkPanel { }) ];
};
}