From bf9af1c5d8d81f574480f5c045e6db21d7d19965 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 17 Jun 2022 23:53:36 +0200 Subject: [PATCH] modules/hyprspace: Auto-restart --- modules/hyprspace/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/hyprspace/default.nix b/modules/hyprspace/default.nix index 4c921fb..71d81bd 100644 --- a/modules/hyprspace/default.nix +++ b/modules/hyprspace/default.nix @@ -46,6 +46,8 @@ in { ''; environment.HYPRSPACE_SWARM_KEY = config.age.secrets.ipfs-swarm-key.path; serviceConfig = { + Restart = "on-failure"; + RestartSec = "5s"; ExecStart = "${hyprspace}/bin/hyprspace up hyprspace -f -c ${runConfig}"; ExecStop = "${hyprspace}/bin/hyprspace down hyprspace"; IPAddressDeny = [