new hosts vps
This commit is contained in:
15
scripts/rebuild-vps.sh
Executable file
15
scripts/rebuild-vps.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user