Skip to content

Commit 492f8c2

Browse files
committed
nixos/waybar: restart service
waybar sometimes fails, especially when sway is being started. This should circumvent some headaches.
1 parent 96d2790 commit 492f8c2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nixos/modules/programs/waybar.nix

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ with lib;
1212
description = "Waybar as systemd service";
1313
wantedBy = [ "graphical-session.target" ];
1414
partOf = [ "graphical-session.target" ];
15-
script = "${pkgs.waybar}/bin/waybar";
15+
serviceConfig = {
16+
ExecStart = "${pkgs.waybar}/bin/waybar";
17+
Restart = "always";
18+
};
1619
};
1720
};
1821

0 commit comments

Comments
 (0)