mirror of
https://github.com/openclaw/nix-openclaw.git
synced 2026-07-25 05:35:30 -04:00
[PR #12] Allow local file management #40
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?
📋 Pull Request Information
Original PR: https://github.com/openclaw/nix-openclaw/pull/12
Author: @uos-status
Created: 1/25/2026
Status: 🔄 Open
Base:
main← Head:fix/manage-files-option📝 Commits (5)
34261f1fix: Linux compatibility updatesf1ad09efix: include extensions directory in gateway installda842bbfix: include docs directory in gateway install for templatesc8f79d6fix: add auth.profiles config for anthropic providerf356de3feat: add manageConfig and manageDocuments options📊 Changes
2 files changed (+62 additions, -29 deletions)
View changed files
📝
nix/modules/home-manager/clawdbot.nix(+61 -28)📝
nix/scripts/gateway-install.sh(+1 -1)📄 Description
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:
https://github.com/clawdbot/nix-clawdbot/pull/9
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.