fix incorrect target host when build host is set

This commit is contained in:
Jörg Thalheim
2025-05-06 09:26:59 +02:00
parent d03ba3da7f
commit e8d2ae2d7e

View File

@@ -171,7 +171,7 @@ def deploy_machine(machine: Machine) -> None:
if build_host:
become_root = False
nix_options += ["--target-host", build_host.target]
nix_options += ["--target-host", target_host.target]
if target_host.user != "root":
nix_options += ["--use-remote-sudo"]