added navidrome

This commit is contained in:
mc-fucker 2022-03-15 15:25:27 +01:00
parent d2d940c64c
commit 1e1c466130
2 changed files with 20 additions and 0 deletions

19
modules/navidrome.nix Normal file
View file

@ -0,0 +1,19 @@
{ ... }:
{
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:

View file

@ -6,6 +6,7 @@
./modules/borg.nix ./modules/borg.nix
./modules/postgresql.nix ./modules/postgresql.nix
./modules/nextcloud.nix ./modules/nextcloud.nix
./modules/navidrome.nix
]; ];
} }