From 89b1f212ea6270d50165ab3e107eae5bfa1dba8d Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Sat, 18 Nov 2023 17:28:19 +0400 Subject: [PATCH] do not activate or switch configuration (only boot) --- nixos-infect | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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