{ config, lib, pkgs, ... }: { services.jellyfin = { enable = true; openFirewall = true; group = "torrent"; }; services.nginx.virtualHosts."stream.${config.networking.hostName}" = { listen = [{ port = 80; addr = "0.0.0.0"; }]; locations."/" = { proxyPass = "http://127.0.0.1:8096"; proxyWebsockets = true; }; }; services.navidrome = { enable = true; openFirewall = true; settings = { MusicFolder = "/servarr/lidarr/"; DataFolder = "/etc/navidrome/data"; CacheFolder = "/etc/navidrome/cache"; Address = "0.0.0.0"; Port = 4533; AuthRequestLimit = 0; EnableTranscodingConfig = true; }; }; services.nginx.virtualHosts."music.${config.networking.hostName}" = { listen = [{ port = 80; addr = "0.0.0.0"; }]; locations."/" = { proxyPass = "http://127.0.0.1:${builtins.toString config.services.navidrome.settings.Port}"; proxyWebsockets = true; }; }; }