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 aa2e8eef88
commit cd23c9ff41

View File

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