cpu-fix #20
@ -3,12 +3,7 @@
|
|||||||
|
|
||||||
set -euox pipefail
|
set -euox pipefail
|
||||||
|
|
||||||
if [ $# -ne 1 ]; then
|
HOST=clan.lol
|
||||||
echo "Usage: $0 <host>"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
HOST=$1
|
|
||||||
temp=$(mktemp -d)
|
temp=$(mktemp -d)
|
||||||
trap 'rm -rf $temp' EXIT
|
trap 'rm -rf $temp' EXIT
|
||||||
sops --extract '["cryptsetup_key"]' -d secrets.yaml > "$temp/secret.key"
|
sops --extract '["cryptsetup_key"]' -d secrets.yaml > "$temp/secret.key"
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
path=$(nix flake metadata --json '.#' | jq -r .path)
|
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"
|
rsync --checksum -vaF --delete -e ssh "${path}/" "root@${ip}:/etc/nixos"
|
||||||
|
|
||||||
ssh "root@$ip" nixos-rebuild switch \
|
ssh "root@$ip" nixos-rebuild switch \
|
||||||
|
Loading…
Reference in New Issue
Block a user