Nixos-rebuild builds locally even with `--build-host` and `--no-build-nix` set

It would appear that the following command builds entirely remotely, but, alas, this takes 100% local CPU (nix eval):

sudo --preserve-env=NIX_SSHOPTS \
  nixos-rebuild \
  --verbose \
  --show-trace \
  --use-remote-sudo \
  --no-build-nix \
  --build-host "${TARGET}" \
  --target-host "${TARGET}" \
  --flake "${FLAKE}" \
  boot

What am I doing wrong? (the build succeeds, though)

Eval always happens locally.

1 Like

Okay, good to know, thank you!