From 3b80f90b994bfce5f80dc37f9eb64231ec10a474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Mon, 30 Mar 2026 01:29:24 +0200 Subject: [PATCH] feat: improve just provison to wait for reboot --- justfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index cddb25a..2120c58 100644 --- a/justfile +++ b/justfile @@ -53,7 +53,10 @@ provision host ip: echo "age key: $age_key" echo "add this key to .sops.yaml, re-encrypt secrets, then press enter to continue" read -r - nix run github:nix-community/nixos-anywhere -- --flake .#{{host}} --extra-files "$tmpdir" --generate-hardware-config nixos-generate-config ./hosts/{{host}}/hardware-configuration.nix root@{{ip}} + nix run github:nix-community/nixos-anywhere -- --no-reboot --flake .#{{host}} --extra-files "$tmpdir" --generate-hardware-config nixos-generate-config ./hosts/{{host}}/hardware-configuration.nix root@{{ip}} + echo "remove USB and press enter to reboot" + read -r + ssh root@{{ip}} reboot # deploy config to a remote host deploy host remote=host: