20 lines
507 B
Nix
20 lines
507 B
Nix
{ options, config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
with lib.plusultra;
|
|
let cfg = config.plusultra.desktop.addons.waybar;
|
|
in
|
|
{
|
|
options.plusultra.desktop.addons.waybar = with types; {
|
|
enable =
|
|
mkBoolOpt false "Whether to enable Waybar in the desktop environment.";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = with pkgs; [ waybar ];
|
|
|
|
plusultra.home.configFile."waybar/config".source = ./config;
|
|
plusultra.home.configFile."waybar/style.css".source = ./style.css;
|
|
};
|
|
}
|