From 870c9d6da8aafa7ba5e1177fc7c139e4a5c59ec3 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sun, 29 Dec 2019 13:52:24 +0000 Subject: [PATCH] Try copy xmonad configuration again on failure --- nix/base.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nix/base.nix b/nix/base.nix index 7ec32e9..4fd8d7f 100644 --- a/nix/base.nix +++ b/nix/base.nix @@ -52,8 +52,9 @@ startup = do ConditionFileNotEmpty = "!/home/user/.xmonad/xmonad.hs"; ExecStart = "/bin/sh -c 'mkdir -p /home/user/.xmonad && ln -s /etc/xmonad.hs /home/user/.xmonad/xmonad.hs'"; RemainAfterExit = "yes"; - Type = "oneshot"; User = "user"; + Restart = "on-failure"; + TimeoutSec = 10; }; wantedBy = [ "multi-user.target" ]; };