packages: fix microvm again

can't run nix-env cause of optimization we don't have nix-daemon and the
path is not registered but somehow now it is working without it...
This commit is contained in:
Sandro - 2023-11-13 03:24:04 +01:00
parent d5a5fdb800
commit 2aefa6bd50
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 2 additions and 3 deletions

View File

@ -219,12 +219,11 @@ lib.attrsets.mapAttrs
ssh ${target} bash -e <<END
set -eou pipefail
if [[ $(cat /etc/hostname) != ${name} ]]; then
if [[ \$(cat /etc/hostname) != ${name} ]]; then
echo "hostname of the target machine does not match, please manually investigate!"
echo " $(ssh ${target} cat /etc/hostname) != ${name}"
echo " $(cat /etc/hostname) != ${name}"
exit 2
fi
${discardStringCtx hostConfig.nix.package}/bin/nix-env -p /nix/var/nix/profiles/system --set ${toplevelOutPath}
${toplevelOutPath}/bin/switch-to-configuration "''${@:-switch}"
END
# ^ yes, this is required to be like this