From 698d0f0a442f12ac0cd70cbc46a69026cc86f7c8 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Tue, 3 Sep 2019 23:51:23 +0200 Subject: polybar: restart service on failure --- modules/services/polybar.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/services/polybar.nix') diff --git a/modules/services/polybar.nix b/modules/services/polybar.nix index ae4b426ed13..4225ed9b38c 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 = { -- cgit v1.2.3