File tree Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -346,22 +346,25 @@ def nixos_anywhere(
346
346
ssh_private_key : Path ,
347
347
nixos_anywhere_args : list [str ],
348
348
) -> None :
349
+ cmd = [
350
+ # FIXME: path
351
+ "bash" ,
352
+ str (NIXOS_ANYWHERE_SH ),
353
+ "--flake" ,
354
+ flake ,
355
+ "-L" ,
356
+ # do not substitute because we do not have internet and copying locally is faster.
357
+ "--no-substitute-on-destination" ,
358
+ ip ,
359
+ * nixos_anywhere_args ,
360
+ ]
349
361
run (
350
- [
351
- # FIXME: path
352
- "bash" ,
353
- str (NIXOS_ANYWHERE_SH ),
354
- "--flake" ,
355
- flake ,
356
- "-L" ,
357
- # do not substitute because we do not have internet and copying locally is faster.
358
- "--no-substitute-on-destination" ,
359
- ip ,
360
- ]
361
- + nixos_anywhere_args ,
362
+ cmd ,
362
363
extra_env = dict (SSH_PRIVATE_KEY = ssh_private_key .read_text ()),
363
364
check = False ,
364
365
)
366
+ print ("If the installation failed, you may run the install command manually again:" )
367
+ print (f"{ cmd } -i { ssh_private_key .read_text ()} " )
365
368
366
369
367
370
@contextmanager
You can’t perform that action at this time.
0 commit comments