Fix NIXOS_REBUILD

This commit is contained in:
Sandro - 2023-10-29 23:00:05 +01:00
parent df33a192cc
commit bcacedf7aa
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 2 additions and 2 deletions

View File

@ -201,13 +201,13 @@ lib.attrsets.mapAttrs
${createSymlinks name}
if [[ -n $NIXOS_REBUILD ]]; then
if [[ -z \\''${NIXOS_REBUILD:-} ]]; then
echo "Restarting MicroVM..."
systemctl restart microvm@${name}.service
fi
END
if [[ -z $NIXOS_REBUILD ]]; then
if [[ -n ''${NIXOS_REBUILD:-} ]]; then
echo "Switching to configuration..."
ssh ${target} -- ${toplevelOutPath}/bin/switch-to-configuration "''${@:-switch}"
fi