nix/moduler/programs/waybar/default.nix
2025-10-17 09:51:35 +02:00

40 lines
683 B
Nix

{
lib,
config,
inputs,
pkgs,
...
}:
let
in
with lib;
{
options = {
waybar = {
enable = mkEnableOption "enables waybar";
configPath = lib.mkOption {
type = lib.types.path;
default = ./waybar.jsonc;
description = "The path to the waybar config";
};
};
};
config = mkIf config.waybar.enable {
programs = {
waybar = {
enable = true;
systemd = {
enable = true;
};
};
};
xdg.configFile."waybar/config.jsonc".source = config.waybar.configPath;
xdg.configFile."waybar/style.css".source = ./waybar-latte.css;
};
# catppuccin.waybar = {
# enable = true;
# flavor = "latte";
# };
}