web01: switch to clan-update command

This commit is contained in:
Jörg Thalheim 2023-08-11 17:34:43 +02:00
parent 937f832848
commit 234bda1241

View File

@ -3,12 +3,4 @@
set -euo pipefail
path=$(nix flake metadata --json '.#' | jq -r .path)
ip=clan.lol
rsync --checksum -vaF --delete -e ssh "${path}/" "root@${ip}:/etc/nixos"
ssh "root@$ip" nixos-rebuild switch \
--fast \
--option keep-going true \
--option accept-flake-config true \
--flake '/etc/nixos#web01'
clan update clan.lol