@@ -638,7 +638,7 @@ runDisko() {
638
638
# If we don't use ssh-ng here, we get `error: operation 'getFSAccessor' is not supported by store`
639
639
diskoScript=$(
640
640
nixBuild " ${flake} #${flakeAttr} .system.build.${diskoMode} Script" \
641
- --eval-store auto --store " ssh-ng://$sshConnection ?ssh-key=$sshKeyDir /nixos -anywhere"
641
+ --eval-store auto --store " ssh-ng://$sshConnection ?ssh-key=$sshKeyDir %2Fnixos -anywhere"
642
642
)
643
643
fi
644
644
@@ -650,17 +650,17 @@ nixosInstall() {
650
650
local nixosSystem=$1
651
651
if [[ -n ${nixosSystem} ]]; then
652
652
step Uploading the system closure
653
- nixCopy --to " ssh://$sshConnection ?remote-store=local?root=/mnt " " $nixosSystem "
653
+ nixCopy --to " ssh://$sshConnection ?remote-store=local%3Froot=%2Fmnt " " $nixosSystem "
654
654
elif [[ ${buildOn} == " remote" ]]; then
655
655
step Building the system closure
656
656
# We need to do a nix copy first because nix build doesn't have --no-check-sigs
657
657
# Use ssh:// here to avoid https://github.com/NixOS/nix/issues/7359
658
- nixCopy --to " ssh://$sshConnection ?remote-store=local?root=/mnt " " ${flake} #${flakeAttr} .system.build.toplevel" \
658
+ nixCopy --to " ssh://$sshConnection ?remote-store=local%3Froot=%2Fmnt " " ${flake} #${flakeAttr} .system.build.toplevel" \
659
659
--derivation --no-check-sigs
660
660
# If we don't use ssh-ng here, we get `error: operation 'getFSAccessor' is not supported by store`
661
661
nixosSystem=$(
662
662
nixBuild " ${flake} #${flakeAttr} .system.build.toplevel" \
663
- --eval-store auto --store " ssh-ng://$sshConnection ?ssh-key=$sshKeyDir /nixos -anywhere&remote-store=local?root=/mnt "
663
+ --eval-store auto --store " ssh-ng://$sshConnection ?ssh-key=$sshKeyDir %2Fnixos -anywhere&remote-store=local%3Froot=%2Fmnt "
664
664
)
665
665
fi
666
666
0 commit comments