From 401f6e07897c741025deaae3ee218f2e753c4bc2 Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Tue, 21 Nov 2023 06:31:02 +0400 Subject: [PATCH] do not remove original OS stuff (it will be moved to /old-root anyway) --- nixos-infect | 7 ------- 1 file changed, 7 deletions(-) diff --git a/nixos-infect b/nixos-infect index e99b4f3..9615b26 100755 --- a/nixos-infect +++ b/nixos-infect @@ -281,10 +281,6 @@ infect() { exit 1 fi - # shellcheck disable=SC1090 - # is it needed? - # source ~/.nix-profile/etc/profile.d/nix.sh - # this is needed solely for accpeting the sp-module subflake /root/.nix-profile/bin/nix flake lock ${LOCAL_FLAKE_DIR} \ --extra-experimental-features "nix-command flakes" \ @@ -300,9 +296,6 @@ infect() { exit 1 fi - # remove original OS stuff - rm -v -rf /etc/{dbus-1,terminfo,systemd} - # Remove nix installed by the "install" script. rm -fv /nix/var/nix/profiles/default* /nix/var/nix/profiles/system/sw/bin/nix-collect-garbage