fix: use --sudo --ask-sudo-password instead of deprecated --use-remote-sudo
This commit is contained in:
parent
10bb0c8e34
commit
6037b55091
7 changed files with 7 additions and 6 deletions
|
|
@ -114,7 +114,7 @@ for entry in "${HOST_ENTRIES[@]}"; do
|
|||
|
||||
CMD=("nixos-rebuild" "$ACTION" "--flake" "${FLAKE_URI}#${name}" "--target-host" "$address")
|
||||
[[ "$BUILD_HOST" != "localhost" ]] && CMD+=("--build-host" "$BUILD_HOST")
|
||||
[[ "$USE_SUDO" = true ]] && CMD+=("--use-remote-sudo")
|
||||
[[ "$USE_SUDO" = true ]] && CMD+=("--sudo" "--ask-sudo-password")
|
||||
|
||||
"${CMD[@]}" || error "Activation failed for $name"
|
||||
success "Host '$name' updated."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue