From 4debab6f69e097ca3b5a96cbcb9298cd3c1ebafa Mon Sep 17 00:00:00 2001 From: DannyDannyDanny Date: Tue, 5 May 2026 21:22:37 +0200 Subject: [PATCH] sunken-ship: mulbo-server creds via EnvironmentFile + MULBO_MUSIC_ROOT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds: - MULBO_MUSIC_ROOT=/srv/music (for the /folders fs walk) - EnvironmentFile=/home/danny/.secrets/mulbo-server-navidrome (creds for Subsonic API calls — file is mode 600, owned by danny, not in source control) Required for the new /folders endpoint and the upcoming POST /tracks which needs to call search3.view + startScan.view. Co-Authored-By: Claude Opus 4.7 (1M context) --- nixos/hosts/sunken-ship.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/hosts/sunken-ship.nix b/nixos/hosts/sunken-ship.nix index 663a242..840062b 100644 --- a/nixos/hosts/sunken-ship.nix +++ b/nixos/hosts/sunken-ship.nix @@ -228,6 +228,7 @@ environment = { MULBO_UPLOADS_DIR = "/home/danny/music/mulbo-uploads"; MULBO_INDEX_DB = "/var/lib/mulbo-server/index.db"; + MULBO_MUSIC_ROOT = "/srv/music"; # for /folders fs walk MULBO_NAVIDROME_URL = "http://localhost:4533"; MULBO_BIND_HOST = "::"; MULBO_BIND_PORT = "8091"; @@ -240,6 +241,12 @@ RestartSec = 5; User = "danny"; StateDirectory = "mulbo-server"; # /var/lib/mulbo-server, owned by danny + # Navidrome credentials — file format: KEY=value lines. + # Required keys: MULBO_NAVIDROME_USER, MULBO_NAVIDROME_PASS. + # Created manually on sunken-ship (mode 600, owned by danny): + # echo -e "MULBO_NAVIDROME_USER=DannyDannyDanny\nMULBO_NAVIDROME_PASS=..." > ~/.secrets/mulbo-server-navidrome + # chmod 600 ~/.secrets/mulbo-server-navidrome + EnvironmentFile = "/home/danny/.secrets/mulbo-server-navidrome"; }; };