nix/module/Waybar.nix

15 lines
266 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.";
};
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ waybar ];
};
}