test: waybar extra style

This commit is contained in:
Peritia 2026-03-03 09:46:33 +01:00
parent abcf8cb092
commit de5a79214a
2 changed files with 7 additions and 2 deletions

View file

@ -96,7 +96,6 @@
finalSettings = baseSettings // cfg.settings.extra;
in {
programs.waybar = lib.mkIf (cfg.enable && cfg.style.preset != "none") {
enable = true;
settings = [finalSettings];
style = selectedStyle + "\n" + cfg.style.extra;
};
}

View file

@ -285,6 +285,12 @@ with lib; {
description = "Waybar visual preset.";
};
style.extra = lib.mkOption {
type = lib.types.lines;
default = "";
description = "Additional CSS appended to the selected Waybar preset.";
};
settings.extra = mkOption {
type = types.attrs;
default = {};