Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
By default, the
nix-clawdbotHome Manager module manages all configuration and document files by symlinking them from the Nix store. This prevents the application from modifying its own configuration (e.g., duringonboardor via UI) and makes it difficult for users to manually edit files in the workspace without changing their Nix configuration.Users may want to manage configuration via Nix but let the bot manage its own documents, or vice versa.
Solution
Added two new options to the Home Manager module:
programs.clawdbot.manageConfig(default:true)false, theclawdbot.jsonconfiguration file is not managed or symlinked by Nix.programs.clawdbot.manageDocuments(default:true)false, document files, skill files, and plugin files in the workspace are not managed or symlinked by Nix.This provides granular control over which parts of the Clawdbot workspace are managed declaratively via Nix and which are left to the application or manual management.
Files Modified
nix/modules/home-manager/clawdbot.nixAdditional Info. This is based off this PR:
#9