update installation message to instruct users to reopen shell and rerun the script after Nix installation
All checks were successful
Nix Format Check / check-format (push) Successful in 37s

This commit is contained in:
Menno van Leeuwen 2025-01-15 13:36:17 +01:00
parent a3f2b7d759
commit 5803376722
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

View File

@ -300,8 +300,8 @@ install_nix() {
die "Failed to install Nix"
fi
log_success "Nix has been installed. We're reinvoking the script to continue setup."
curl -L https://df.mvl.sh | bash -s - -c
log_success "Nix has been installed. Please open a new shell and re-run the script."
log_info "`~/dotfiles/setup.sh --continue` to continue setup."
exit 0
}
@ -455,10 +455,15 @@ main() {
git clone "$GIT_REPO" "$DOTFILES_DIR" || die "Failed to clone dotfiles repository"
fi
warning_prompt
prepare_hostname
check_selinux
install_nix
if [ "$1" = "--continue" ]; then
log_info "Continuing setup..."
else
warning_prompt
prepare_hostname
check_selinux
install_nix
fi
install_home_manager
setup_symlinks