From d9f5d476af322038e9365087c2e3d38d8a32a7fa Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Thu, 17 Apr 2025 02:02:03 -0600 Subject: [PATCH] attempt to properly parametize multi-scrobbler --- modules/servers/multi-scrobbler.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/servers/multi-scrobbler.nix b/modules/servers/multi-scrobbler.nix index cfd6c1e..bbd20a5 100644 --- a/modules/servers/multi-scrobbler.nix +++ b/modules/servers/multi-scrobbler.nix @@ -1,6 +1,7 @@ { lib, config, ... }: let - cfg = config.my.servers.multi-scrobbler; + servers = config.my.servers; + cfg = servers.multi-scrobbler; setup = import ./setup.nix { inherit lib config; }; in { @@ -18,8 +19,8 @@ in PGID = toString config.users.groups.users.gid; BASE_URL = cfg.url; DEEZER_REDIRECT_URI = "http://${config.my.ips.${cfg.hostName}}:${toString cfg.port}/deezer/callback"; - MALOJA_URL = "http://192.168.1.69:42010"; - PLEX_URL = "http://192.168.1.69:32400"; + MALOJA_URL = servers.maloja.local; + PLEX_URL = servers.plex.local; WS_ENABLE = "true"; }; volumes = [ "${config.my.containerData}/multi-scrobbler:/config" ];