diff --git a/modules/navidrome.nix b/modules/navidrome.nix index 8886e08..de7b31f 100644 --- a/modules/navidrome.nix +++ b/modules/navidrome.nix @@ -13,7 +13,14 @@ proxyPass = "http://localhost:4533"; }; }; - # fixes failing DNS lookup - systemd.services.navidrome.serviceConfig.BindReadOnlyPaths = [ "/etc" ]; + systemd.services.navidrome = { + # fixes failing DNS lookup + serviceConfig.BindReadOnlyPaths = [ "/etc" ]; + after = [ "genc_mount.service" ]; + serviceConfig = { + Restart = "on-failure"; + RestartSec = "1s"; + }; + }; } # vim: set et ts=2 sw=2 ai: