20 lines
435 B
Nix
20 lines
435 B
Nix
|
|
{ ... }:
|
||
|
|
{
|
||
|
|
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:
|