Open
Conversation
What: - Remove hardcoded `/bin/` paths from activation scripts - Use home-manager's `run` function for mkdir and ln commands How: - Change `/bin/mkdir -p` and `/bin/ln -sfn` to `run mkdir -p` and `run ln -sfn` in clawdbotDirs and clawdbotConfigFiles activation blocks Why: - Hardcoded `/bin/mkdir` and `/bin/ln` don't exist on NixOS, where binaries live in the Nix store and are accessed via PATH - Using bare commands (mkdir, ln) works but breaks dry-run mode - `run` is the home-manager 25.11 convention, replacing the deprecated `$DRY_RUN_CMD`. It executes normally but only prints when using `home-manager switch --dry-run` - This matches home-manager's own modules (e.g., xdg-user-dirs.nix) Fixes: openclaw#5
These attributes were missing from defaultInstanceConfig, causing evaluation failures when using the simple configuration style.
Paths like ~/.clawdbot need to be expanded to absolute paths for systemd, which cannot interpret literal ~.
The gateway now expects telegram config under channels.telegram instead of top-level telegram key.
Upstream renamed messages.queue.byProvider to messages.queue.byChannel.
Had this error before: [telegram] handler failed: Error: Missing workspace template: AGENTS.md
Automatically update version strings in clawdbot-gateway.nix and check derivations when running update-pins.sh, keeping them in sync with the upstream release tag.
dominicnunez
added a commit
to dominicnunez/clawdbot-nix
that referenced
this pull request
Jan 24, 2026
…penclaw#10 Incorporates fixes from upstream nix-clawdbot PRs: - Add aarch64-linux to supported systems (PR #3, openclaw#10) - Expose agent-first template in flake outputs (PR #2) - Update schema: telegram -> channels.telegram, byProvider -> byChannel (PR openclaw#9, openclaw#10) - Fix defaultInstance missing attributes: agent, gatewayPath, launchd/systemd labels (PR openclaw#7) - Use resolvePath for systemd service paths to handle ~ expansion (PR openclaw#10) - Default macOS-only first-party plugins (summarize, peekaboo) to disabled on Linux (PR openclaw#9)
5 tasks
|
@moltbot Any updates on this? nix-clawdbot should have proper nix(os) support ;) |
Collaborator
|
I'll take a look soon - the best way to reach me (and the other maintainers) is on Discord - for this repo, you want the #golden-path-deployments channel. I am also running the bot on NixOS in the server - check https://github.com/moltbot/moltinators for more. It's quite possible everything is very broken at the moment - I had some personal stuff to work on for a while. But now I'm back, first I'll make my bots work, then start looking at PRs/new features etc :) |
|
@joshp123 which Discord? Do you have a link? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR enables running clawdbot on NixOS systems, particularly aarch64-linux (tested on Hetzner CAX ARM servers).
NixOS compatibility
runfunction instead of hardcoded/bin/mkdir) - addresses Bug: Hardcoded /bin/mkdir and /bin/ln paths fail on NixOS #5~paths in systemd service configaarch64-linux support
aarch64-linuxto supported systems in flakeUpstream schema migrations
channels.telegrambyProvidertobyChannelin routing queue options (similar to fix: disable macOS-only first-party plugins by default on Linux #9)Build fixes
CI improvements
update-pins.sh(similar to Update gateway version to 2026.1.23, fix defaultInstance bugs, and enhance auto-update #7)