From d74320012eda3ce82233d53409d757f448f5e8c1 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 (cherry picked from commit 698d0f0a442f12ac0cd70cbc46a69026cc86f7c8) --- modules/services/polybar.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/services/polybar.nix b/modules/services/polybar.nix index 8bc4539d..3070e49f 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 = {