File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -335,22 +335,24 @@ def ssh_private_key() -> Iterator[SshKey]:
335
335
def nixos_anywhere (
336
336
ip : str , flake : str , ssh_private_key : Path , nixos_anywhere_args : List [str ]
337
337
) -> None :
338
+ cmd = [
339
+ # FIXME: path
340
+ "bash" ,
341
+ str (NIXOS_ANYWHERE_SH ),
342
+ "--flake" ,
343
+ flake ,
344
+ "-L" ,
345
+ # do not substitute because we do not have internet and copying locally is faster.
346
+ "--no-substitute-on-destination" ,
347
+ ip ,
348
+ ] + nixos_anywhere_args
338
349
run (
339
- [
340
- # FIXME: path
341
- "bash" ,
342
- str (NIXOS_ANYWHERE_SH ),
343
- "--flake" ,
344
- flake ,
345
- "-L" ,
346
- # do not substitute because we do not have internet and copying locally is faster.
347
- "--no-substitute-on-destination" ,
348
- ip ,
349
- ]
350
- + nixos_anywhere_args ,
350
+ cmd ,
351
351
extra_env = dict (SSH_PRIVATE_KEY = ssh_private_key .read_text ()),
352
352
check = False ,
353
353
)
354
+ print ("If the installation failed, you may run the install command manually again:" )
355
+ print (f"{ cmd } -i { ssh_private_key .read_text ()} " )
354
356
355
357
356
358
@contextmanager
You can’t perform that action at this time.
0 commit comments