nixos-config/modules/navidrome.nix

20 lines
435 B
Nix
Raw Normal View History

2022-03-15 15:25:27 +01:00
{ ... }:
{
services.navidrome = {
enable = true;
settings = {
MusicFolder = "/mnt/genc/Musik";
};
};
services.nginx.virtualHosts."music.mc-fucker.cool" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:4533";
};
};
# fixes failing DNS lookup
systemd.services.navidrome.serviceConfig.BindReadOnlyPaths = [ "/etc" ];
}
# vim: set et ts=2 sw=2 ai: