Users running via nix run don't have ./setup locally,
so show the full nix run command in output messages.
Uses generic placeholder for repo URL.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The setup script runs without a TTY in nix run, so GPG
pinentry fails. Use --no-gpg-sign for the initial commit.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Extract public key from generated file instead of parsing
stderr through a pipe, which could cause blocking.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
age-keygen outputs "Public key:" but grep was searching for
lowercase "public key", causing silent exit with pipefail.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The cleanup_camera trap handler couldn't access local variables
(ffmpeg_pid, tmpdir) when triggered, causing "unbound variable"
errors with set -u. Fixed by using global paths with $$ suffix
that the trap can reference directly.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add ./setup script for single-command device initialization
- Interactive menu: new setup, join existing, or pair mobile
- Bootstrap from git repo + age key: ./setup <url> <key>
- Mobile pairing with live camera QR scanning
- Enhance usync with device management commands
- usync init: bootstrap from config repo
- usync invite: show QR for mobile
- usync add-device: add device by ID
- usync join: join existing setup
- Mobile/GrapheneOS optimizations
- Live camera preview with targeting box (ffmpeg + SDL)
- Auto-detect QR codes without manual capture
- Syncthing pending device detection
- Simplify nix develop shell message
- Add ffmpeg, zbar, qrencode, age, sops to devShell
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>