.claude: Add shared permissions allow list, ignore local settings
CI / Check, build and cache nixfiles (push) Failing after 2m30s

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-28 12:20:09 +01:00
parent e077c6e30c
commit e47e30df19
3 changed files with 24 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
{
"permissions": {
"allow": [
"Bash(nix eval:*)",
"Bash(nix flake check:*)",
"Bash(nix build:*)",
"Bash(check-system:*)",
"Bash(build-system:*)",
"Bash(build-home:*)",
"Bash(git status:*)",
"Bash(git diff:*)",
"Bash(git log:*)",
"Bash(git show:*)",
"Bash(drill:*)",
"Bash(ping:*)"
]
}
}
+1
View File
@@ -4,3 +4,4 @@ result*
!/.vms/.gitkeep !/.vms/.gitkeep
/.keys/*.key /.keys/*.key
*.swp *.swp
/.claude/settings.local.json
+5
View File
@@ -9,6 +9,11 @@ tools refuse to write through a symlink and will error on `CLAUDE.md`).
convention, a workflow gotcha, a design rationale — record it here (or in a repo doc this file points convention, a workflow gotcha, a design rationale — record it here (or in a repo doc this file points
to, e.g. `home-switches.md`), not in agent memory. AGENTS.md is versioned and shared; memory is not. to, e.g. `home-switches.md`), not in agent memory. AGENTS.md is versioned and shared; memory is not.
Claude Code permissions live in two files: `.claude/settings.json` (versioned, shared — the
committed allow list of safe-to-auto-approve commands) and `.claude/settings.local.json` (personal,
gitignored — where interactive "always allow" grants accumulate). Put durable, generally-safe
commands in the shared file; leave one-off or machine-specific grants in the local one.
## Overview ## Overview
Personal Nix flake managing NixOS systems and home-manager configurations for a set of Personal Nix flake managing NixOS systems and home-manager configurations for a set of