feat(claude): add Claude Code settings for auto-permissions and conventional commits
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 <noreply@anthropic.com>
This commit is contained in:
@@ -166,6 +166,20 @@
|
|||||||
# Use kickstart.nvim configuration from flake
|
# Use kickstart.nvim configuration from flake
|
||||||
programs.neovim-kickstart.enable = true;
|
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 = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableDefaultConfig = false;
|
enableDefaultConfig = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user