do not remove original OS stuff (it will be moved to /old-root anyway)
continuous-integration/drone/push Build is failing Details

hetzner-flakes
Alexander Tomokhov 2023-11-21 06:31:02 +04:00
parent 6645c8e61b
commit 401f6e0789
1 changed files with 0 additions and 7 deletions

View File

@ -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