waybar: fix by specifying bars as list instead of attrs (wtf home-manager?)

This commit is contained in:
Colin 2023-01-29 08:03:20 +00:00
parent fd19802e91
commit ed70e045cb

View File

@ -6,8 +6,8 @@ let
cfg = config.sane.gui.sway;
# docs: https://github.com/Alexays/Waybar/wiki/Configuration
# format specifiers: https://fmt.dev/latest/syntax.html#syntax
waybar-config = {
mainBar = {
waybar-config = [
{ # TOP BAR
layer = "top";
height = 40;
modules-left = ["sway/workspaces" "sway/mode"];
@ -68,8 +68,8 @@ let
clock = {
format-alt = "{:%a, %d. %b %H:%M}";
};
};
};
}
];
# waybar-config-text = lib.generators.toJSON {} waybar-config;
waybar-config-text = (pkgs.formats.json {}).generate "waybar-config.json" waybar-config;
in