diff --git a/modules/navidrome.nix b/modules/navidrome.nix new file mode 100644 index 0000000..8886e08 --- /dev/null +++ b/modules/navidrome.nix @@ -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: diff --git a/systems/mc6/configuration.nix b/systems/mc6/configuration.nix index 41ef0fa..45dcda5 100644 --- a/systems/mc6/configuration.nix +++ b/systems/mc6/configuration.nix @@ -6,6 +6,7 @@ ./modules/borg.nix ./modules/postgresql.nix ./modules/nextcloud.nix + ./modules/navidrome.nix ]; }