challenger: add navidrome

This commit is contained in:
2024-09-03 19:26:59 +02:00
parent aeb9014815
commit 817514b8b7
3 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
{ config, lib, pkgs, ... }:
let
domain = "music.feal.no";
cfg = config.services.navidrome;
in {
services.navidrome = {
enable = true;
settings = {
BaseUrl = "https://${domain}";
EnableSharing = true;
EnableTranscodingConfig = true;
MusicFolder = "/tank/media/music/";
SubsonicArtistParticipations = true;
};
};
services.nginx.virtualHosts."${domain}".locations."/" = {
proxyPass = "http://${cfg.settings.Address}:${toString cfg.settings.Port}";
};
}