From 1e1c46613076e25d2e2f49ae04610930dab4bdb6 Mon Sep 17 00:00:00 2001 From: mc-fucker Date: Tue, 15 Mar 2022 15:25:27 +0100 Subject: [PATCH] added navidrome --- modules/navidrome.nix | 19 +++++++++++++++++++ systems/mc6/configuration.nix | 1 + 2 files changed, 20 insertions(+) create mode 100644 modules/navidrome.nix 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 ]; }