diff --git a/fix-waybar.patch b/fix-waybar.patch new file mode 100644 index 0000000..dbbee95 --- /dev/null +++ b/fix-waybar.patch @@ -0,0 +1,13 @@ +diff --git a/src/modules/clock.cpp b/src/modules/clock.cpp +index f313606..daa0f6a 100644 +--- a/src/modules/clock.cpp ++++ b/src/modules/clock.cpp +@@ -46,7 +46,7 @@ auto waybar::modules::Clock::update() -> void { + date::make_zoned(time_zone_, date::floor(now))}; + + std::string text; +- if (!fixed_time_zone_) { ++ if (false && !fixed_time_zone_) { + // As date dep is not fully compatible, prefer fmt + tzset(); + auto localtime = fmt::localtime(std::chrono::system_clock::to_time_t(now)); diff --git a/sway.nix b/sway.nix index 537d6c2..6f46cb6 100644 --- a/sway.nix +++ b/sway.nix @@ -7,7 +7,11 @@ environment.systemPackages = with pkgs; with gnome3; [ i3status - (waybar.override { pulseSupport = true; }) + ((waybar.override { pulseSupport = true; }).overrideDerivation (_: { + patches = [ + ./fix-waybar.patch + ]; + })) wofi ydotool wl-clipboard