nixos-config/modules/navidrome.nix
2022-08-01 15:27:44 +02:00

26 lines
572 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";
};
};
systemd.services.navidrome = {
# fixes failing DNS lookup
serviceConfig.BindReadOnlyPaths = [ "/etc" ];
after = [ "genc_mount.service" ];
serviceConfig = {
Restart = "on-failure";
RestartSec = "5s";
};
};
}
# vim: set et ts=2 sw=2 ai: