diff --git a/nixos-infect b/nixos-infect index 1b3702e..c72126c 100755 --- a/nixos-infect +++ b/nixos-infect @@ -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