mirror of
https://github.com/openclaw/nix-openclaw.git
synced 2026-07-25 13:45:53 -04:00
Clarify permissions needed for programs.clawdbot.documents #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Clausinho on GitHub (Jan 21, 2026).
Summary
When running
nh home switch .withprograms.clawdbot.documentspointed at/home/clausi/clawd, the evaluation fails with the following assertions, even though the files exist for the logged-in user:Steps to reproduce
programs.clawdbot.documents = /home/<your-user>/clawdor a similar path that already containsAGENTS.md,SOUL.md, andTOOLS.md.nh home switch .from that flake.Context
The nix daemon runs as one of the
nixbld*builders, so it must be able to traverse every parent directory of the workspace path. If/home/<your-user>is mode0700,builtins.pathExistsevaluates tofalseand the assertions fire before the files can be reached.Proposal
Document that the daemon needs execute/search permissions on each ancestor directory (or that the workspace must live in a location the daemon already has access to). Linking to an example layout or helper would also be helpful.