tailscale and user groups

This commit is contained in:
root 2026-07-19 11:34:28 -03:00
parent 6447486643
commit f733a5238c
No known key found for this signature in database
7 changed files with 113 additions and 217 deletions

View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -euo pipefail
SSH_TARGET="sandbox@vsock%3"
if [[ "$PWD" == /home/user* ]] || [[ "$PWD" == /etc/nixos* ]]; then
project="${PWD/\/home\/user/\/home\/sandbox}"
else
project="$(ssh "$SSH_TARGET" 'mktemp -d -p /tmp claude-XXXXXX')"
fi
exec ssh -t "$SSH_TARGET" claude-code "$project" "$@"