No need to copy inputPaths anymore
This commit is contained in:
parent
0892d56d7e
commit
394b2826ab
|
@ -120,13 +120,12 @@ lib.attrsets.mapAttrs
|
|||
echo "hostname of ${target} was expected to be ${name} but is $hostname. Aborting to be safe..."
|
||||
exit 2
|
||||
fi
|
||||
nix copy --no-check-sigs --to ssh-ng://${target} ${inputPaths}
|
||||
nix copy --no-check-sigs --derivation --to ssh-ng://${target} ${toplevelDrvPath}
|
||||
|
||||
# use nixos-rebuild from target config
|
||||
ssh ${target} bash -e <<END
|
||||
set -eou pipefail
|
||||
set -x
|
||||
|
||||
nix build --no-link ${toplevelDrvPath}
|
||||
${discardStringCtx hostConfig.nix.package}/bin/nix-env -p /nix/var/nix/profiles/system --set ${toplevelOutPath}
|
||||
${toplevelOutPath}/bin/switch-to-configuration "''${@:-switch}"
|
||||
|
@ -211,6 +210,7 @@ lib.attrsets.mapAttrs
|
|||
|
||||
${hostConfig.system.build.runOnServer} NIXOS_REBUILD="''${NIXOS_REBUILD:-}" bash -e <<END
|
||||
set -eou pipefail
|
||||
|
||||
${createDirsCopyCurrent name}
|
||||
|
||||
nix build -L --accept-flake-config -o current ${declaredRunnerDrvPath}
|
||||
|
|
Loading…
Reference in New Issue