From 23897093b22e3dadea5629ed8498addec8350564 Mon Sep 17 00:00:00 2001 From: 0xWheatyz Date: Sun, 15 Mar 2026 12:08:49 -0400 Subject: [PATCH] feat(claude): add Claude Code settings for auto-permissions and conventional commits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Configure Claude Code to allow Edit, Write, and git commands without prompting, and instruct it to use conventional commit format in git repositories. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- home.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/home.nix b/home.nix index 4ae60ef..d9161e4 100644 --- a/home.nix +++ b/home.nix @@ -166,6 +166,20 @@ # Use kickstart.nvim configuration from flake programs.neovim-kickstart.enable = true; + # Claude Code configuration + home.file.".claude/settings.json" = { + text = builtins.toJSON { + permissions = { + allow = [ + "Edit" + "Write" + "Bash(git *)" + ]; + }; + customInstructions = "When working in a git repository, always use conventional commits format (e.g., feat:, fix:, docs:, style:, refactor:, test:, chore:) for commit messages."; + }; + }; + programs.ssh = { enable = true; enableDefaultConfig = false;