diff --git a/ruysch.nix b/ruysch.nix index 3b9c5f2..a3a8ccd 100644 --- a/ruysch.nix +++ b/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 = {