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
64
ruysch.nix
64
ruysch.nix
|
|
@ -124,47 +124,39 @@
|
|||
"/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.
|
||||
|
||||
''
|
||||
"permissions": {
|
||||
"deny": [
|
||||
"Read(.env)",
|
||||
"Read(.env.*)",
|
||||
"Read(~/.ssh/**)",
|
||||
"Read(~/.gnupg/**)",
|
||||
"Read(~/.config/**)",
|
||||
"Read(~/Documents/**)",
|
||||
"Bash(* | bash)",
|
||||
"Bash(* | sh)",
|
||||
"Bash(sudo *)",
|
||||
"Bash(ssh *)",
|
||||
"Bash(git push *)",
|
||||
"Bash(git commit *)"
|
||||
],
|
||||
"ask": [
|
||||
"Bash(curl *)",
|
||||
"Bash(wget *)"
|
||||
],
|
||||
"disableBypassPermissionsMode": "disable"
|
||||
},
|
||||
''
|
||||
permissions = {
|
||||
deny = [
|
||||
"Read(.env)"
|
||||
"Read(.env.*)"
|
||||
"Read(~/.ssh/**)"
|
||||
"Read(~/.gnupg/**)"
|
||||
"Read(~/.config/**)"
|
||||
"Read(~/Documents/**)"
|
||||
"Bash(* | bash)"
|
||||
"Bash(* | sh)"
|
||||
"Bash(sudo *)"
|
||||
"Bash(ssh *)"
|
||||
"Bash(git push *)"
|
||||
"Bash(git commit *)"
|
||||
];
|
||||
ask = [
|
||||
"Bash(git push *)"
|
||||
"Bash(git commit *)"
|
||||
];
|
||||
disableBypassPermissionsMode = "disable";
|
||||
};
|
||||
|
||||
# Personal config.
|
||||
|
||||
''
|
||||
"disableAutoMode": "disable",
|
||||
"env": {
|
||||
"CLAUDE_CODE_ENABLE_AWAY_SUMMARY": "0",
|
||||
"CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION": "false"
|
||||
}
|
||||
''
|
||||
|
||||
"}"
|
||||
];
|
||||
disableAutoMode = "disable";
|
||||
env = {
|
||||
CLAUDE_CODE_ENABLE_AWAY_SUMMARY = 0;
|
||||
CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION = "false";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue