2
2
mirror of https://git.feal.no/felixalb/nixos-config.git synced 2024-12-23 04:27:31 +01:00
nixos-config/hosts/challenger/services/navidrome.nix

21 lines
509 B
Nix
Raw Normal View History

2024-09-03 19:26:59 +02:00
{ 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}";
};
}