Skip to content

Commit 6fc48ff

Browse files
authored
Setup Claude Code settings (#298)
* Setup Claude Code settings * Add other bash commands * Enable some MCP servers
1 parent 569d7c2 commit 6fc48ff

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

‎modules/home/development.nix‎

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,51 @@ in {
2828
(mkIf cfg.ai.enable {
2929
programs.claude-code = {
3030
enable = true;
31+
settings = {
32+
model = "opus";
33+
enableAllProjectMcpServers = true;
34+
enabledMcpjsonServers = ["linear"];
35+
permissions = {
36+
allow = [
37+
"Bash(find *)"
38+
"Bash(echo *)"
39+
"Bash(grep *)"
40+
"Bash(rg *)"
41+
"Bash(head *)"
42+
"Bash(tail *)"
43+
"Bash(cat *)"
44+
"Bash(ls *)"
45+
"Bash(wc *)"
46+
"Bash(which *)"
47+
"Bash(nix *)"
48+
"Bash(git log *)"
49+
"Bash(git diff *)"
50+
"Bash(git status)"
51+
"Bash(git show *)"
52+
"Bash(git branch *)"
53+
"Bash(* --version)"
54+
"Bash(* --help *)"
55+
"mcp__linear__get_project"
56+
"mcp__linear__list_issues"
57+
"mcp__linear__get_issue"
58+
"mcp__linear__list_comments"
59+
"mcp__linear__extract_images"
60+
"mcp__linear__get_document"
61+
"mcp__figma__get_design_context"
62+
"mcp__figma__get_metadata"
63+
"mcp__figma__get_screenshot"
64+
];
65+
deny = [
66+
"Bash(git push *)"
67+
"Bash(git reset *)"
68+
"Bash(git checkout *)"
69+
"Bash(rm *)"
70+
"Bash(sudo *)"
71+
"Bash(nixos-rebuild *)"
72+
"Bash(darwin-rebuild *)"
73+
];
74+
};
75+
};
3176
};
3277
})
3378

0 commit comments

Comments
 (0)