~ / rigs / hahunavth / nix-config

hahunavth/nix-config

Declarative macOS + NixOS setup: nix-darwin, home-manager and Nix Flakes. Per-host configs, feature toggles, Homebrew casks, mise runtimes, dev shells and sops secrets.

↗ GitHub ★ 0 no license updated 1mo ago personal setup Claude CodeCodex
share on X
ARCHETYPE
Pragmatist
A balanced, no-drama setup: some rules, some tools, nothing extreme.
CONTEXT TAX · EVERY TURN
~5.2k tokens
Moderate · median rig: 2.3k · breakdown
GUARDRAILS
2/5
Pre-tool screening hook · No YOLO mode · details
Quality 15/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ claude mcp add nixos -- nix run github:utensils/mcp-nixos --
$ npx degit hahunavth/nix-config/.claude ./rig-nix-config  # 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 -- nix run github:utensils/mcp-nixos --
$ npx degit hahunavth/nix-config/.claude/skills/verify .claude/skills/verify

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "${CLAUDE_PROJECT_DIR}/.claude/hooks/git-add-flake.sh"
          }
        ]
      }
    ]
  }
}

MCP servers (1)

serversourceest. tokens
nix · "nixos" binary 2.5k

Skills (1)

Hooks (2)

eventmatcherruns
PreToolUseBash${CLAUDE_PROJECT_DIR}/.claude/hooks/git-add-flake.sh
PostToolUseEdit|Write${CLAUDE_PROJECT_DIR}/.claude/hooks/format-nix.sh

Slash commands (7)

/add-cask/add-host/build/clean/diff/rebuild/update

Permissions

deny (0)
—
ask (0)
—
allow (30)
Bash(nix build:*)
Bash(nix eval:*)
Bash(nix flake check:*)
Bash(nix flake metadata:*)
Bash(nix flake update:*)
Bash(nix fmt:*)
Bash(nix search:*)
Bash(nix path-info:*)
Bash(nix store diff-closures:*)
Bash(nix-store --query:*)
Bash(git status:*)
Bash(git diff:*)
Bash(git log:*)
Bash(git add:*)
Bash(git ls-files:*)
Bash(statix:*)
Bash(deadnix:*)
Bash(nvd diff:*)
Bash(nh clean all --keep 5 --dry)
Bash(brew info:*)
Bash(brew list:*)
Bash(brew search:*)
Bash(brew --version)
Bash(brew --repository)
Bash(brew --prefix:*)
Bash(scutil --get LocalHostName)
Bash(hostname -s)
Read(//opt/homebrew/Caskroom/**)
Read(//nix/store/**)
Read(//run/current-system/**)

Similar rigs

copied ✓