diff --git a/targets/web01/decrypt.sh b/targets/web01/decrypt.sh index 10d805c..727a0ae 100755 --- a/targets/web01/decrypt.sh +++ b/targets/web01/decrypt.sh @@ -3,12 +3,7 @@ set -euox pipefail -if [ $# -ne 1 ]; then - echo "Usage: $0 " - 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" diff --git a/targets/web01/deploy.sh b/targets/web01/deploy.sh index 3f47464..4181cfc 100755 --- a/targets/web01/deploy.sh +++ b/targets/web01/deploy.sh @@ -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 \