From c5cabe7531e74cad5824beda30b795bb3f97fbb0 Mon Sep 17 00:00:00 2001 From: DannyDannyDanny Date: Sat, 9 May 2026 22:43:40 +0200 Subject: [PATCH] sunken-ship: MULBO_MUSIC_WRITE_ROOT for mulbo-server dedup /srv/music is RO bind-mount; deletes/quarantines have to go through the underlying /home/danny/music. New env var separates the read-side (MUSIC_ROOT, used for hashing) from the write-side (MUSIC_WRITE_ROOT, used for unlink + move-to-quarantine). Co-Authored-By: Claude Opus 4.7 (1M context) --- nixos/hosts/sunken-ship.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nixos/hosts/sunken-ship.nix b/nixos/hosts/sunken-ship.nix index d1714bf..4c0f13b 100644 --- a/nixos/hosts/sunken-ship.nix +++ b/nixos/hosts/sunken-ship.nix @@ -239,9 +239,10 @@ wants = [ "network-online.target" ]; wantedBy = [ "multi-user.target" ]; 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_UPLOADS_DIR = "/home/danny/music/mulbo-uploads"; + MULBO_INDEX_DB = "/var/lib/mulbo-server/index.db"; + MULBO_MUSIC_ROOT = "/srv/music"; # ro view via bind-mount; reads + hashing + MULBO_MUSIC_WRITE_ROOT = "/home/danny/music"; # underlying rw path; deletes + quarantines MULBO_NAVIDROME_URL = "http://localhost:4533"; MULBO_BIND_HOST = "::"; MULBO_BIND_PORT = "8091";