Generate Claude JSON config from Nix expression
This commit is contained in:
parent
8d807dc4ca
commit
6112653d95
1 changed files with 29 additions and 37 deletions
62
ruysch.nix
62
ruysch.nix
|
|
@ -124,47 +124,39 @@
|
||||||
"/var/lib/postgresql"
|
"/var/lib/postgresql"
|
||||||
];
|
];
|
||||||
|
|
||||||
etc."claude/settings.json".text = lib.concatStringsSep "\n" [
|
etc."claude/settings.json".source = (pkgs.formats.json {}).generate "claude-config" {
|
||||||
"{"
|
|
||||||
|
|
||||||
# Required by TandemDrive security policy.
|
# Required by TandemDrive security policy.
|
||||||
|
|
||||||
''
|
permissions = {
|
||||||
"permissions": {
|
deny = [
|
||||||
"deny": [
|
"Read(.env)"
|
||||||
"Read(.env)",
|
"Read(.env.*)"
|
||||||
"Read(.env.*)",
|
"Read(~/.ssh/**)"
|
||||||
"Read(~/.ssh/**)",
|
"Read(~/.gnupg/**)"
|
||||||
"Read(~/.gnupg/**)",
|
"Read(~/.config/**)"
|
||||||
"Read(~/.config/**)",
|
"Read(~/Documents/**)"
|
||||||
"Read(~/Documents/**)",
|
"Bash(* | bash)"
|
||||||
"Bash(* | bash)",
|
"Bash(* | sh)"
|
||||||
"Bash(* | sh)",
|
"Bash(sudo *)"
|
||||||
"Bash(sudo *)",
|
"Bash(ssh *)"
|
||||||
"Bash(ssh *)",
|
"Bash(git push *)"
|
||||||
"Bash(git push *)",
|
|
||||||
"Bash(git commit *)"
|
"Bash(git commit *)"
|
||||||
],
|
];
|
||||||
"ask": [
|
ask = [
|
||||||
"Bash(curl *)",
|
"Bash(git push *)"
|
||||||
"Bash(wget *)"
|
"Bash(git commit *)"
|
||||||
],
|
];
|
||||||
"disableBypassPermissionsMode": "disable"
|
disableBypassPermissionsMode = "disable";
|
||||||
},
|
};
|
||||||
''
|
|
||||||
|
|
||||||
# Personal config.
|
# Personal config.
|
||||||
|
|
||||||
''
|
disableAutoMode = "disable";
|
||||||
"disableAutoMode": "disable",
|
env = {
|
||||||
"env": {
|
CLAUDE_CODE_ENABLE_AWAY_SUMMARY = 0;
|
||||||
"CLAUDE_CODE_ENABLE_AWAY_SUMMARY": "0",
|
CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION = "false";
|
||||||
"CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION": "false"
|
};
|
||||||
}
|
};
|
||||||
''
|
|
||||||
|
|
||||||
"}"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue