20 lines
281 B
Nix
20 lines
281 B
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib;
|
|
let
|
|
cfg = config.module.desktop.waybar;
|
|
in
|
|
{
|
|
options = {
|
|
module.desktop.waybar = {
|
|
enable = mkEnableOption "Use Waybar.";
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable { environment.systemPackages = with pkgs; [ waybar ]; };
|
|
}
|