From ec85a18dc0164b0c632826f6fd76c8056b71bd8b Mon Sep 17 00:00:00 2001 From: mc-fucker Date: Wed, 1 Jun 2022 11:18:13 +0200 Subject: [PATCH] fixed navidrome not starting at reboot --- modules/navidrome.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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: