From 698d0f0a442f12ac0cd70cbc46a69026cc86f7c8 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Tue, 3 Sep 2019 23:51:23 +0200 Subject: [PATCH] polybar: restart service on failure --- modules/services/polybar.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/services/polybar.nix b/modules/services/polybar.nix index ae4b426e..4225ed9b 100644 --- a/modules/services/polybar.nix +++ b/modules/services/polybar.nix @@ -131,6 +131,7 @@ in scriptPkg = pkgs.writeShellScriptBin "polybar-start" cfg.script; in "${scriptPkg}/bin/polybar-start"; + Restart = "on-failure"; }; Install = {