From 616f65c6ca10f7d52ef13cd61850451364cabced Mon Sep 17 00:00:00 2001 From: julian Date: Thu, 26 Oct 2023 21:08:57 +0200 Subject: [PATCH] Set Restart to on-failure for shairport-sync service Do that, since it recently crashed for some reason and just restarting should probably work pretty well. --- config/hosts/audio/shairport-sync.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/hosts/audio/shairport-sync.nix b/config/hosts/audio/shairport-sync.nix index 9bbbddc..d19a7cf 100644 --- a/config/hosts/audio/shairport-sync.nix +++ b/config/hosts/audio/shairport-sync.nix @@ -19,6 +19,12 @@ target = "shairport-sync.conf"; }; + systemd.services.shairport-sync = { + serviceConfig = { + Restart = "on-failure"; + }; + }; + users.users.nqptp = { isSystemUser = true; group = "nqptp";