forked from clan/clan-infra
scripts: hardcode target
This commit is contained in:
parent
689ea867dc
commit
39ee5d7f4e
@ -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"
|
||||
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user