#!/usr/bin/env sh # G-12 multi-machine ROUTING validation via SSH-to-self: test-remote points at # 127.0.0.1, so `--on test-remote` exercises nina's full SSH routing (build ssh # argv, connect, run remotely, parse output) and `status --all` aggregation. # CAVEAT: test-remote IS this machine, so this validates the --on plumbing, NOT # physical isolation (separate generation counts need two real networked VMs). set -u N=/root/nina echo "KILN_MM_BEGIN" mkdir -p /root/.ssh && chmod 700 /root/.ssh ssh-keygen -t ed25519 -N '' -f /root/.ssh/id_test /dev/null 2>&1 cat /root/.ssh/id_test.pub >> /root/.ssh/authorized_keys chmod 600 /root/.ssh/authorized_keys cat > /root/.nina.conf < nixos-rebuild switch on self)" $N apply --on test-remote