From cd9e81c63203a8272f1488be1e216f98c1021612 Mon Sep 17 00:00:00 2001 From: Colin Date: Sun, 29 Jan 2023 08:03:20 +0000 Subject: [PATCH] waybar: fix by specifying bars as list instead of attrs (wtf home-manager?) --- modules/gui/sway.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/gui/sway.nix b/modules/gui/sway.nix index 083ce3c0..7e8f39bb 100644 --- a/modules/gui/sway.nix +++ b/modules/gui/sway.nix @@ -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; in {