Files
NixOS/scripts/rebuild-vps.sh
Danilo Reyes dbd3af3d0f new hosts vps
2026-02-03 15:31:47 -06:00

16 lines
293 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
if [ "${1:-}" = "" ] || [ "${2:-}" = "" ]; then
echo "Usage: scripts/rebuild-vps.sh <host> <flake-path>" >&2
exit 1
fi
host="$1"
flake_path="$2"
nixos-rebuild switch \
--flake "${flake_path}#vps" \
--target-host "${host}" \
--use-remote-sudo