From 4e7e6e2538dac08381c02ff494d4feeacf1633af Mon Sep 17 00:00:00 2001 From: ckie Date: Tue, 17 Oct 2023 20:34:00 +0300 Subject: [PATCH] xsession: allow xplugd to restart on failure This should let it recover a bit better from transient errors. --- modules/xsession.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/xsession.nix b/modules/xsession.nix index d8e2a71c2..269ce1fa0 100644 --- a/modules/xsession.nix +++ b/modules/xsession.nix @@ -139,6 +139,7 @@ in { Service = { Type = "forking"; + Restart = "on-failure"; ExecStart = let script = pkgs.writeShellScript "xplugrc" '' case "$1,$3" in