attempt plasma flake
This commit is contained in:
parent
dac2d0cf9c
commit
012e493ad3
12 changed files with 561 additions and 5 deletions
22
flakes/de_plasma/home_manager/panel.nix
Normal file
22
flakes/de_plasma/home_manager/panel.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.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 {}) ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue