From 6bb433025b4b589339f2c14c0ef0a2ec13fb5394 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Tue, 26 May 2026 09:42:41 -0400 Subject: [PATCH] stop fucking with /nix, retard --- modules/home/claude-code/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/home/claude-code/default.nix b/modules/home/claude-code/default.nix index 8dffece..743c046 100644 --- a/modules/home/claude-code/default.nix +++ b/modules/home/claude-code/default.nix @@ -19,6 +19,15 @@ # CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING = "1"; CLAUDE_CODE_DISABLE_AUTO_MEMORY = "1"; }; + # Stop Claude from crawling /nix (the store is huge and ripgrep/find + # over it wedges sessions). + permissions.deny = [ + "Bash(bfs /nix*)" + "Bash(grep * /nix*)" + "Bash(rg * /nix*)" + "Bash(find /nix*)" + "Bash(fd * /nix*)" + ]; }; }; }