From cccd46d7a2ce2c1bbd1098094a56f1167249f774 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sun, 19 Nov 2023 06:39:32 +0000 Subject: [PATCH] Move navidrome port definition --- services/navidrome/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/services/navidrome/default.nix b/services/navidrome/default.nix index fd68bac4..6d7979ab 100644 --- a/services/navidrome/default.nix +++ b/services/navidrome/default.nix @@ -1,15 +1,17 @@ { pkgs, ... }: -let baseUrl = "music.xenia.me.uk"; +let + baseUrl = "music.xenia.me.uk"; + port = 4533; in { imports = [ ../traefik/default.nix ]; environment.systemPackages = with pkgs; [ ffmpeg ]; - services = rec { + services = { navidrome = { enable = true; settings = { Address = "127.0.0.1"; BaseUrl = "https://${baseUrl}"; - Port = 4533; + Port = port; }; }; traefik.dynamicConfigOptions.http = { @@ -20,7 +22,7 @@ in { tls = { certResolver = "default"; }; }; services.navidrome.loadBalancer.servers = - [{ url = "http://localhost:${navidrome.settings.Port}"; }]; + [{ url = "http://localhost:${port}"; }]; }; }; }