nix/module/Waybar.nix

20 lines
281 B
Nix
Raw Normal View History

{
lib,
config,
pkgs,
...
}:
with lib;
let
cfg = config.module.desktop.waybar;
in
{
options = {
module.desktop.waybar = {
enable = mkEnableOption "Use Waybar.";
};
};
2024-10-14 04:51:19 +03:00
config = mkIf cfg.enable { environment.systemPackages = with pkgs; [ waybar ]; };
}