infect: remove nix profile in the end

This commit is contained in:
Alexander Tomokhov 2024-01-10 00:25:54 +04:00
parent 8ce494c490
commit 8f00617b3d

View file

@ -520,7 +520,8 @@ infect() {
fi fi
# Remove nix installed by the "install" script. # Remove nix installed by the "install" script.
rm -fv /nix/var/nix/profiles/default* rm -fv /nix/var/nix/profiles/default* /root/.nix-profile
rm -rv /nix/var/nix/profiles/per-user
/nix/var/nix/profiles/system/sw/bin/nix-collect-garbage /nix/var/nix/profiles/system/sw/bin/nix-collect-garbage
} }