From d787b0ea4836e8ab2acd27ffc7697a7dab787a8e Mon Sep 17 00:00:00 2001 From: Danny Date: Sun, 3 May 2026 06:27:21 +0200 Subject: [PATCH] phantom-ship: merge shelfish data dir into existing tmpfiles rules Fixes nixos-rebuild error: systemd.tmpfiles.rules was set twice. Co-Authored-By: Claude Opus 4.7 (1M context) --- nixos/hosts/phantom-ship.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nixos/hosts/phantom-ship.nix b/nixos/hosts/phantom-ship.nix index 123c6e9..ea44e0e 100644 --- a/nixos/hosts/phantom-ship.nix +++ b/nixos/hosts/phantom-ship.nix @@ -160,10 +160,12 @@ in }; }; - # OpenClaw gateway needs write access to its config dir and repo clones. + # OpenClaw gateway needs write access to its config dir and repo clones; + # shelfish wants its DB outside the rsynced code dir. systemd.tmpfiles.rules = [ "d /etc/openclaw 0775 root openclaw - -" "d /var/lib/openclaw/repos 0750 openclaw openclaw - -" + "d /home/danny/.local/share/shelfish 0755 danny users - -" ]; # Hara Gmail MCP server (path 1: IMAP+SMTP). Replaced by an OAuth2 @@ -265,9 +267,7 @@ in # Auth: validates Telegram WebApp initData against shipyard's bot token # (the bot that publishes shelfish via shipyard's project list). # DB lives outside the rsynced code dir so deploys don't clobber state. - systemd.tmpfiles.rules = (lib.mkAfter [ - "d /home/danny/.local/share/shelfish 0755 danny users - -" - ]); + # (tmpfiles rule for the DB dir is bundled into the OpenClaw block above.) systemd.services.shelfish = let pythonEnv = pkgs.python3.withPackages (ps: with ps; [ fastapi