~ / rigs / rudenkornk / dotfiles

rudenkornk/dotfiles

NixOS config

stack: NixPython
share on X
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
CONTEXT TAX · EVERY TURN
~5.5k tokens
Moderate · median rig: 2.3k · breakdown
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)

serversourceest. tokens
mcp-nixos · "nixos" binary 2.5k

Hooks (16)

eventmatcherruns
UserPromptSubmit*tmux-agent-status set --state running
PreToolUse*tmux-agent-status set --state running
PreToolUse*tmux-agent-name set --source title
PreToolUseBashatuin hook claude-code
PostToolUseBashatuin hook claude-code
PostToolUseFailureBashatuin 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
Notificationpermission_prompt|elicitation_dialog|agent_needs_inputtmux-agent-status set --state waiting
Notificationpermission_prompt|elicitation_dialog|agent_needs_inputtmux-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

copied ✓