mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect.git
synced 2024-11-22 12:01:27 +00:00
do not activate or switch configuration (only boot)
This commit is contained in:
parent
f3aca43b24
commit
89b1f212ea
11
nixos-infect
11
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
|
||||
|
|
Loading…
Reference in a new issue