@@ -456,8 +456,10 @@ runDisko() {
456
456
elif [[ ${buildOnRemote} == " y" ]]; then
457
457
step Building disko script
458
458
# We need to do a nix copy first because nix build doesn't have --no-check-sigs
459
- nixCopy --to " ssh-ng://$sshConnection " " ${flake} #nixosConfigurations.\" ${flakeAttr} \" .config.system.build.diskoScript" \
459
+ # Use ssh:// here to avoid https://github.com/NixOS/nix/issues/7359
460
+ nixCopy --to " ssh://$sshConnection " " ${flake} #nixosConfigurations.\" ${flakeAttr} \" .config.system.build.diskoScript" \
460
461
--derivation --no-check-sigs
462
+ # If we don't use ssh-ng here, we get `error: operation 'getFSAccessor' is not supported by store`
461
463
diskoScript=$(
462
464
nixBuild " ${flake} #nixosConfigurations.\" ${flakeAttr} \" .config.system.build.diskoScript" \
463
465
--eval-store auto --store " ssh-ng://$sshConnection ?ssh-key=$sshKeyDir /nixos-anywhere"
@@ -476,8 +478,10 @@ nixosInstall() {
476
478
elif [[ ${buildOnRemote} == " y" ]]; then
477
479
step Building the system closure
478
480
# We need to do a nix copy first because nix build doesn't have --no-check-sigs
479
- nixCopy --to " ssh-ng://$sshConnection ?remote-store=local?root=/mnt" " ${flake} #nixosConfigurations.\" ${flakeAttr} \" .config.system.build.toplevel" \
481
+ # Use ssh:// here to avoid https://github.com/NixOS/nix/issues/7359
482
+ nixCopy --to " ssh://$sshConnection ?remote-store=local?root=/mnt" " ${flake} #nixosConfigurations.\" ${flakeAttr} \" .config.system.build.toplevel" \
480
483
--derivation --no-check-sigs
484
+ # If we don't use ssh-ng here, we get `error: operation 'getFSAccessor' is not supported by store`
481
485
nixosSystem=$(
482
486
nixBuild " ${flake} #nixosConfigurations.\" ${flakeAttr} \" .config.system.build.toplevel" \
483
487
--eval-store auto --store " ssh-ng://$sshConnection ?ssh-key=$sshKeyDir /nixos-anywhere&remote-store=local?root=/mnt"
0 commit comments