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:
parent
d5a5fdb800
commit
2aefa6bd50
|
@ -219,12 +219,11 @@ lib.attrsets.mapAttrs
|
||||||
ssh ${target} bash -e <<END
|
ssh ${target} bash -e <<END
|
||||||
set -eou pipefail
|
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 "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
|
exit 2
|
||||||
fi
|
fi
|
||||||
${discardStringCtx hostConfig.nix.package}/bin/nix-env -p /nix/var/nix/profiles/system --set ${toplevelOutPath}
|
|
||||||
${toplevelOutPath}/bin/switch-to-configuration "''${@:-switch}"
|
${toplevelOutPath}/bin/switch-to-configuration "''${@:-switch}"
|
||||||
END
|
END
|
||||||
# ^ yes, this is required to be like this
|
# ^ yes, this is required to be like this
|
||||||
|
|
Loading…
Reference in New Issue