scripts: hardcode target

This commit is contained in:
Jörg Thalheim 2023-07-19 14:43:30 +02:00
parent 689ea867dc
commit 39ee5d7f4e
2 changed files with 2 additions and 7 deletions

View File

@ -3,12 +3,7 @@
set -euox pipefail
if [ $# -ne 1 ]; then
echo "Usage: $0 <host>"
exit 1
fi
HOST=$1
HOST=clan.lol
temp=$(mktemp -d)
trap 'rm -rf $temp' EXIT
sops --extract '["cryptsetup_key"]' -d secrets.yaml > "$temp/secret.key"

View File

@ -4,7 +4,7 @@
set -euo pipefail
path=$(nix flake metadata --json '.#' | jq -r .path)
ip=65.109.103.5
ip=clan.lol
rsync --checksum -vaF --delete -e ssh "${path}/" "root@${ip}:/etc/nixos"
ssh "root@$ip" nixos-rebuild switch \