home / skills / openclaw / skills / nix-mode
This skill helps Clawdbot operate in Nix mode by guiding configuration, path handling, and environment detection without auto-install.
npx playbooks add skill openclaw/skills --skill nix-modeReview the files below or copy the command above to add this skill to your agents.
---
name: nix-mode
description: Handle Clawdbot operations in Nix mode (configuration management, environment detection).
metadata: {"clawdbot":{"emoji":"❄️","requires":{"bins":["nix","bash"],"envs":["CLAWDBOT_NIX_MODE"]},"install":[]}}
---
# Clawdbot Nix Mode Skill
This skill handles Clawdbot operations specifically when running in Nix mode.
## Nix Mode Specific Features
### Environment Detection
- Detect when `CLAWDBOT_NIX_MODE=1` is set
- Identify Nix-managed configuration paths
- Recognize Nix-specific error messages and behaviors
### Configuration Management
- Understand that auto-install flows are disabled in Nix mode
- Guide users to proper Nix package management
- Explain why certain self-modification features are unavailable
### Path Handling
- Recognize Nix store paths
- Understand the difference between config and state directories
- Handle `CLAWDBOT_CONFIG_PATH` and `CLAWDBOT_STATE_DIR` appropriately
### Troubleshooting
- Identify Nix-specific remediation messages
- Guide users to proper dependency management via Nix
- Explain the read-only Nix mode banner behavior
## Usage Guidelines
When operating in Nix mode:
1. Do not attempt to auto-install dependencies
2. Direct users to Nix package management instead
3. Respect the immutable nature of Nix installations
4. Advise on proper configuration practices for Nix environmentsThis skill manages Clawdbot behavior when running in Nix mode, focusing on safe configuration handling and environment-aware guidance. It prevents operations that break immutable Nix deployments and gives clear instructions for using Nix package management and proper config/state paths. It is designed to make Clawdbot predictable and transparent in Nix-managed systems.
The skill detects Nix mode by checking the CLAWDBOT_NIX_MODE environment variable and inspecting known Nix store and profile paths. It recognizes Nix-specific error messages and read-only behaviors, and it adjusts actions accordingly by disabling auto-install flows and self-modification features. It also maps CLAWDBOT_CONFIG_PATH and CLAWDBOT_STATE_DIR to their Nix-aware locations and surfaces remediation steps that point to Nix package and configuration workflows.
What happens if a dependency is missing in Nix mode?
The skill will avoid trying to install it and instead produce a remediation message that directs the operator to add the dependency via Nix (package, overlay, or flake).
Can I enable auto-install in Nix mode?
No. Auto-install and self-modification are intentionally disabled because Nix enforces immutability; use declarative Nix tooling to change runtime artifacts.