fix: restore compatibility with older nixos-rebuild sudo flag
Some checks failed
Terraform Plan / Terraform Plan (push) Has been cancelled

Use --use-remote-sudo in rebuild script since the runner's nixos-rebuild does not support --sudo yet.
This commit is contained in:
2026-03-02 22:30:38 +00:00
parent a81799a2b5
commit 190dc2e095

View File

@@ -164,7 +164,7 @@ rebuild_node() {
timeout "$REBUILD_TIMEOUT" nixos-rebuild switch \
--flake "$FLAKE_DIR#$node_name" \
--target-host "$ACTIVE_SSH_USER@$node_ip" \
--sudo
--use-remote-sudo
}
rebuild_node_with_retry() {