Create Claude Code config with system config
This commit is contained in:
parent
d080dfabeb
commit
075dd8e011
1 changed files with 47 additions and 0 deletions
47
ruysch.nix
47
ruysch.nix
|
|
@ -123,6 +123,48 @@
|
|||
"/var/lib/garage"
|
||||
"/var/lib/postgresql"
|
||||
];
|
||||
|
||||
etc."claude/settings.json".text = lib.concatStringsSep "\n" [
|
||||
"{"
|
||||
|
||||
# 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"
|
||||
},
|
||||
''
|
||||
|
||||
# Personal config.
|
||||
|
||||
''
|
||||
"disableAutoMode": "disable",
|
||||
"env": {
|
||||
"CLAUDE_CODE_ENABLE_AWAY_SUMMARY": "0",
|
||||
"CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION": "false"
|
||||
}
|
||||
''
|
||||
|
||||
"}"
|
||||
];
|
||||
};
|
||||
|
||||
services = {
|
||||
|
|
@ -207,6 +249,11 @@
|
|||
redis.serviceConfig.RuntimeDirectoryMode = lib.mkForce "0755";
|
||||
};
|
||||
|
||||
systemd.user.tmpfiles.rules = [
|
||||
# TODO: Don't persist entire .claude directory.
|
||||
"L /home/rei/.claude/settings.json - - - - /etc/claude/settings.json"
|
||||
];
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"L+ /tmp/.s.PGSQL.5432 - - - - /run/postgresql/.s.PGSQL.5432"
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in a new issue