File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -335,8 +335,7 @@ def ssh_private_key() -> Iterator[SshKey]:
335335def nixos_anywhere (
336336 ip : str , flake : str , ssh_private_key : Path , nixos_anywhere_args : List [str ]
337337) -> None :
338- run (
339- [
338+ cmd = [
340339 # FIXME: path
341340 "bash" ,
342341 str (NIXOS_ANYWHERE_SH ),
@@ -346,11 +345,13 @@ def nixos_anywhere(
346345 # do not substitute because we do not have internet and copying locally is faster.
347346 "--no-substitute-on-destination" ,
348347 ip ,
349- ]
350- + nixos_anywhere_args ,
348+ ] + nixos_anywhere_args
349+ run ( cmd ,
351350 extra_env = dict (SSH_PRIVATE_KEY = ssh_private_key .read_text ()),
352351 check = False ,
353352 )
353+ print (f"If the installation failed, you may run the install command manually again:" )
354+ print (f"{ cmd } -i { ssh_private_key .read_text ()} " )
354355
355356
356357@contextmanager
You can’t perform that action at this time.
0 commit comments