nixos-rebuild-ng: avoid copying closure when target_host matches build_host (#480389)

This commit is contained in:
Thiago Kenji Okada
2026-01-22 15:30:48 +00:00
committed by GitHub
@@ -224,7 +224,7 @@ def copy_closure(
)
match (to_host, from_host):
case (None, None):
case (x, y) if x == y:
return
case (Remote(_) as host, None) | (None, Remote(_) as host):
nix_copy_closure(host, to=bool(to_host))