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; + }; + }; +}