do not activate or switch configuration (only boot)

This commit is contained in:
Alexander Tomokhov 2023-11-18 17:28:19 +04:00
parent f3aca43b24
commit 89b1f212ea

View file

@ -311,18 +311,9 @@ infect() {
exit 1
fi
# remove original OS stuff
rm -v -rf /etc/{dbus-1,terminfo,systemd}
echo "activate the built configuration..."
if ! /nix/var/nix/profiles/system/activate; then
echo "Failed!"; exit 1
fi
echo "make configuration switch..."
if /nix/var/nix/profiles/system/bin/switch-to-configuration switch; then
echo "Failed!"; exit 1
fi
# Remove nix installed by the "install" script.
rm -fv /nix/var/nix/profiles/default*
/nix/var/nix/profiles/system/sw/bin/nix-collect-garbage