No need to copy inputPaths anymore

This commit is contained in:
Sandro - 2023-11-14 01:20:07 +01:00
parent 0892d56d7e
commit 394b2826ab
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 2 additions and 2 deletions

View File

@ -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}