Skip to content

Commit 5c649a5

Browse files
stackptrclaude
andcommitted
feat(home): expand claude-code read permissions for nix store and systemd
- Allow Read(/nix/store/*) for inspecting derivations and build outputs - Replace narrow systemctl entries with full read-only coverage (cat, is-active, is-enabled, is-failed, list-jobs, list-sockets, list-timers, list-unit-files, list-units, show, status) - Fix journalctl permission syntax (colon → space) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 278fe7f commit 5c649a5

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

modules/home/development.nix

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ in {
4242
autoMemoryEnabled = false;
4343
permissions = {
4444
allow = [
45+
# Nix store (read-only access for inspecting derivations and build outputs)
46+
"Read(/nix/store/*)"
4547
# File exploration
4648
"Bash(cat *)"
4749
"Bash(cut *)"
@@ -155,10 +157,19 @@ in {
155157
"Bash(gt restack*)"
156158
"Bash(gt sync*)"
157159
# System
158-
"Bash(journalctl:*)"
160+
"Bash(journalctl *)"
159161
"Bash(mkdir *)"
160-
"Bash(systemctl list-jobs:*)"
161-
"Bash(systemctl status:*)"
162+
"Bash(systemctl cat *)"
163+
"Bash(systemctl is-active *)"
164+
"Bash(systemctl is-enabled *)"
165+
"Bash(systemctl is-failed *)"
166+
"Bash(systemctl list-jobs*)"
167+
"Bash(systemctl list-sockets*)"
168+
"Bash(systemctl list-timers*)"
169+
"Bash(systemctl list-unit-files*)"
170+
"Bash(systemctl list-units*)"
171+
"Bash(systemctl show *)"
172+
"Bash(systemctl status *)"
162173
"WebFetch(domain:raw.githubusercontent.com)"
163174
"WebFetch(domain:github.com)"
164175
"WebSearch"

0 commit comments

Comments
 (0)