From 0ea8390e96dc2e90011b8f576468b8222ab7c3d4 Mon Sep 17 00:00:00 2001 From: alexion Date: Mon, 10 Aug 2026 22:21:32 -0400 Subject: [PATCH] fix(actualbudget): preserve migrated data path --- AGENTS.md | 2 ++ guests/actualbudget.nix | 2 +- hosts/pikachu/default.nix | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index fa09456..6fcf69c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -18,6 +18,8 @@ The domain model (Host, Module, Skeleton, Auto-loader, Enable convention, overla ## Gotchas +- Actual Budget's NixOS service runs `actual-server` with `WorkingDirectory = services.actual.settings.dataDir`, and `actual-server` prefers a `config.json` in that current directory over `ACTUAL_CONFIG_PATH`. + When migrating old community-script state, either preserve the old in-guest data path or remove/update the copied `config.json`, otherwise stale absolute paths such as `/opt/actualbudget-data/server-files` override the declarative module settings. - Subagent completion delivery is non-blocking through immediate spawn, milestone notifications, retained terminal entries, and `subagent_list` or `subagent_result` retrieval. `subagent_wait` intentionally blocks the parent tool call until its condition or timeout, so do not use it merely to keep background work alive during an interactive workflow. - Nixvim's flake input following the root nixpkgs source does not make its Home Manager module reuse the host's `pkgs` instance. diff --git a/guests/actualbudget.nix b/guests/actualbudget.nix index 24da98a..2f5a2cc 100644 --- a/guests/actualbudget.nix +++ b/guests/actualbudget.nix @@ -16,7 +16,7 @@ my.guest { group = "storage"; settings = { port = 5006; - dataDir = "/var/lib/actual"; + dataDir = "/opt/actualbudget-data"; }; }; }; diff --git a/hosts/pikachu/default.nix b/hosts/pikachu/default.nix index fd7b355..a1de406a 100644 --- a/hosts/pikachu/default.nix +++ b/hosts/pikachu/default.nix @@ -76,7 +76,7 @@ autoStart = false; vlan = 20; mac = "BC:24:11:C1:CD:28"; - mounts."/var/lib/actual".hostPath = "/pikachu/data/actualbudget"; + mounts."/opt/actualbudget-data".hostPath = "/pikachu/data/actualbudget"; limits = { memory = "2G"; cpu = "200%";