mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect.git
synced 2024-11-22 03:51:27 +00:00
do not remove original OS stuff (it will be moved to /old-root anyway)
This commit is contained in:
parent
6645c8e61b
commit
401f6e0789
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue