ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
GUARDRAILS
3/5
Protects secrets · Pre-tool screening hook · No YOLO mode · details
Quality 20/100 Guardrails v2
Copy this rig
# review before running: this installs third-party code $ claude mcp add nixos -- mcp-nixos $ npx degit rudenkornk/dotfiles/nix/home-manager/ai/configs/.claude ./rig-dotfiles # inspect, then merge into .claude/
MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.
$ claude mcp add nixos -- mcp-nixos Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.
{
"permissions": {
"deny": [
"Read(//run/user/*/secrets/**)",
"Edit(//run/user/*/secrets/**)",
"Read(~/.config/sops/**)",
"Edit(~/.config/sops/**)",
"Read(~/.gnupg/**)",
"Edit(~/.gnupg/**)",
"Read(~/.pki/**)",
"Edit(~/.pki/**)",
"Read(~/.local/share/keyrings/**)",
"Edit(~/.local/share/keyrings/**)",
"Read(~/.local/share/TelegramDesktop/**)",
"Edit(~/.local/share/TelegramDesktop/**)",
"Read(~/.config/mozilla/**)",
"Edit(~/.config/mozilla/**)",
"Read(~/.config/google-chrome/**)",
"Edit(~/.config/google-chrome/**)"
]
},
"hooks": {
"PreToolUse": [
{
"matcher": "*",
"hooks": [
{
"type": "command",
"command": "tmux-agent-status set --state running"
},
{
"type": "command",
"command": "tmux-agent-name set --source title"
}
]
},
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "atuin hook claude-code"
}
]
}
]
}
} MCP servers (1)
| server | source | est. tokens |
|---|---|---|
| mcp-nixos · "nixos" | binary | 2.5k |
Hooks (16)
| event | matcher | runs |
|---|---|---|
| UserPromptSubmit | * | tmux-agent-status set --state running |
| PreToolUse | * | tmux-agent-status set --state running |
| PreToolUse | * | tmux-agent-name set --source title |
| PreToolUse | Bash | atuin hook claude-code |
| PostToolUse | Bash | atuin hook claude-code |
| PostToolUseFailure | Bash | atuin hook claude-code |
| PreCompact | * | tmux-agent-status set --state running |
| PreCompact | * | tmux-agent-name set --source title |
| PostCompact | * | tmux-agent-status set --state done |
| PostCompact | * | tmux-agent-name set --source title |
| Notification | permission_prompt|elicitation_dialog|agent_needs_input | tmux-agent-status set --state waiting |
| Notification | permission_prompt|elicitation_dialog|agent_needs_input | tmux-agent-name set --source title |
| Stop | * | tmux-agent-status set --state done |
| Stop | * | tmux-agent-name set --source title |
| StopFailure | * | tmux-agent-status set --state error |
| SessionEnd | * | tmux-agent-status set --state clear |
Permissions
deny (16)
Read(//run/user/*/secrets/**)
Edit(//run/user/*/secrets/**)
Read(~/.config/sops/**)
Edit(~/.config/sops/**)
Read(~/.gnupg/**)
Edit(~/.gnupg/**)
Read(~/.pki/**)
Edit(~/.pki/**)
Read(~/.local/share/keyrings/**)
Edit(~/.local/share/keyrings/**)
Read(~/.local/share/TelegramDesktop/**)
Edit(~/.local/share/TelegramDesktop/**)
Read(~/.config/mozilla/**)
Edit(~/.config/mozilla/**)
Read(~/.config/google-chrome/**)
Edit(~/.config/google-chrome/**)
ask (0)
—
allow (4)
Read(~/.cargo/registry/**)
Read(~/projects/dotfiles/**)
Read(~/projects/arcadia*/**)
Read(~/projects/cloudia*/**)
Similar rigs
sctmes/dotfiles
Downstream NixOS management for SCTMES-owned hosts.
Pragmatist 4.1k tok · · Q20
AveryanAlex/dotfiles
AveryanAlex's NixOS configuration
Pragmatist 6.9k tok · · Q20
phrmendes/dotfiles
Dotfiles files for my personal computer
Pragmatist 20.9k tok · · Q5
heytcass/claudeos
A NixOS daily driver maintained by an AI agent: it heals failed units, names generations, and opens PRs to change itself.
Orchestrator 14.8k tok · · Q40