From 5271fe9965886013c1a8048ba421fbcc4cecb745 Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Tue, 12 Nov 2024 01:29:06 -0600 Subject: [PATCH] bert: Add navidrome --- bert/configuration.nix | 1 + bert/services/http/index.nix | 1 + bert/services/http/music.chandlerswift.com.nix | 5 +++++ bert/services/navidrome.nix | 10 ++++++++++ 4 files changed, 17 insertions(+) create mode 100644 bert/services/http/music.chandlerswift.com.nix create mode 100644 bert/services/navidrome.nix diff --git a/bert/configuration.nix b/bert/configuration.nix index eecb150..c541597 100644 --- a/bert/configuration.nix +++ b/bert/configuration.nix @@ -8,6 +8,7 @@ ./services/http/index.nix ./services/monitoring.nix ./services/forgejo.nix + ./services/navidrome.nix ]; # Bootloader diff --git a/bert/services/http/index.nix b/bert/services/http/index.nix index 4420666..80976af 100644 --- a/bert/services/http/index.nix +++ b/bert/services/http/index.nix @@ -6,6 +6,7 @@ ./home.chandlerswift.com.nix ./katherineandchandler.com.nix ./maps.chandlerswift.com.nix + ./music.chandlerswift.com.nix ./stjohnscccc.org.nix ./swiftgang.net.nix ]; diff --git a/bert/services/http/music.chandlerswift.com.nix b/bert/services/http/music.chandlerswift.com.nix new file mode 100644 index 0000000..c43cd35 --- /dev/null +++ b/bert/services/http/music.chandlerswift.com.nix @@ -0,0 +1,5 @@ +{config, ...}: { + services.caddy.virtualHosts."music.chandlerswift.com".extraConfig = '' + reverse_proxy localhost:${toString config.services.navidrome.settings.Port} + ''; +} diff --git a/bert/services/navidrome.nix b/bert/services/navidrome.nix new file mode 100644 index 0000000..42d86a6 --- /dev/null +++ b/bert/services/navidrome.nix @@ -0,0 +1,10 @@ +{ + services.navidrome = { + enable = true; + settings = { + MusicFolder = "/mnt/bigbird-public/media/music"; + ScanSchedule = "@every 12h"; + EnableSharing = true; + }; + }; +}