01 · Once per machine
Prepare your laptop
Install the CLI with Nix or with the curl installer. Tailscale puts you on the private network. After this, creating a box is the two commands in the next section.
Install the CLI
On a pristine Mac (Apple Silicon) or Linux x86_64, install the CLI (and step) with no Nix. Or install Nix and skip this — every command can be nix run github:juspay/xyne-boxes instead.
$curl -fsSL https://raw.githubusercontent.com/juspay/xyne-boxes/nightly/installer/install.sh | sh
Install Tailscale
You need the Tailscale CLI so you can join the Juspay network. On macOS, install it from the Mac App Store. On Linux, use the official Linux packages or your distro’s Tailscale module. tailscale --help should print something.
macOS: CLI missing after the App Store install
The App Store build does not always put the CLI on your PATH. Paste this once:
$mkdir -p /usr/local/bin
printf '#!/bin/sh\nexec /Applications/Tailscale.app/Contents/MacOS/Tailscale "$@"\n' > /usr/local/bin/tailscale
chmod +x /usr/local/bin/tailscale
Join the network
This opens a browser so you can sign in.
$sudo tailscale up --login-server=https://headscale.nixos.asia --hostname $(hostname -s)