From 8f5e3c10356c3b2a244eb530bbae0c9ccbd23a38 Mon Sep 17 00:00:00 2001 From: John Soo Date: Thu, 8 Feb 2024 11:39:12 -0700 Subject: [PATCH] nixos: restart atticd on failure --- nixos/atticd.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/atticd.nix b/nixos/atticd.nix index 4ae72e2..f14141a 100644 --- a/nixos/atticd.nix +++ b/nixos/atticd.nix @@ -199,6 +199,8 @@ in ProtectKernelTunables = true; ProtectProc = "invisible"; ProtectSystem = "strict"; + Restart = "on-failure"; + RestartSec = 10; RestrictAddressFamilies = [ "AF_INET" "AF_INET6" "AF_UNIX" ]; RestrictNamespaces = true; RestrictRealtime = true;