test: waybar extra style
This commit is contained in:
parent
abcf8cb092
commit
de5a79214a
2 changed files with 7 additions and 2 deletions
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue