module(waybar): Refactor waybar module

This commit is contained in:
ulic-youthlic 2025-07-13 06:04:55 +08:00
parent 90a5b36616
commit 6c4546df9c
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
4 changed files with 181 additions and 129 deletions

View file

@ -19,6 +19,21 @@ in {
wluma.extraSettings = lib.mkOption {
inherit (options.david.programs.wluma.extraSettings) type;
};
waybar = {
template = lib.mkOption {
readOnly = true;
type = lib.types.anything;
default = config.david.programs.waybar.template;
};
helper = lib.mkOption {
readOnly = true;
type = lib.types.anything;
default = config.david.programs.waybar.helper;
};
settings = lib.mkOption {
inherit (options.david.programs.waybar.settings) type;
};
};
};
};
config = lib.mkMerge [
@ -65,7 +80,10 @@ in {
};
david.programs = {
fuzzel.enable = true;
waybar.enable = true;
waybar = {
enable = true;
inherit (cfg.waybar) settings;
};
wluma = {
enable = true;
inherit (cfg.wluma) extraSettings;