Waybar config

This commit is contained in:
fwastring 2025-10-10 16:31:26 +02:00
parent 3c7a01f264
commit e8d8704b70
6 changed files with 232 additions and 59 deletions

View file

@ -1,4 +1,5 @@
{
lib,
config,
inputs,
pkgs,
@ -6,18 +7,32 @@
}:
let
in
with lib;
{
programs = {
options = {
waybar = {
enable = true;
systemd = {
enable = true;
enable = mkEnableOption "enables waybar";
configPath = lib.mkOption {
type = lib.types.path;
default = ./waybar.jsonc;
description = "The path to the waybar config";
};
};
};
xdg.configFile."waybar/config.jsonc".source = ./waybar.jsonc;
xdg.configFile."waybar/style.css".source = ./waybar.css;
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.css;
};
# catppuccin.waybar = {
# enable = true;
# flavor = "latte";