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

@ -3,7 +3,7 @@ set -euo pipefail
SSH_TARGET="sandbox@vsock%3"
if [[ "$PWD" == /home/user* ]]; then
if [[ "$PWD" == /home/user* ]] || [[ "$PWD" == /etc/nixos* ]]; then
project="${PWD/\/home\/user/\/home\/sandbox}"
else
project="$(ssh "$SSH_TARGET" 'mktemp -d -p /tmp opencode-XXXXXX')"