nixos-rebuild-ng: make sure to copy the new closure when doing test or build
This commit is contained in:
committed by
Thiago Kenji Okada
parent
cab7882bf5
commit
a61aede368
@@ -331,6 +331,9 @@ def execute(argv: list[str]) -> None:
|
||||
dry_run=dry_run,
|
||||
**build_flags,
|
||||
)
|
||||
# If we are rolling back, the generation that we roll back to, should already be present on the remote
|
||||
if not args.rollback:
|
||||
nix.copy_closure(path_to_config, target_host, **copy_flags)
|
||||
if action in (Action.TEST, Action.DRY_ACTIVATE):
|
||||
nix.switch_to_configuration(
|
||||
path_to_config,
|
||||
|
||||
Reference in New Issue
Block a user