enhance setup script to support continuation of installation process
All checks were successful
Nix Format Check / check-format (push) Successful in 37s

This commit is contained in:
Menno van Leeuwen 2025-01-15 12:52:40 +01:00
parent 852c5ebef8
commit 0747d2a784
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

View File

@ -301,7 +301,7 @@ install_nix() {
fi
log_success "Nix has been installed. We're reinvoking the script to continue setup."
curl -L https://df.mvl.sh | bash
curl -L https://df.mvl.sh | bash -s - -c
exit 0
}
@ -446,6 +446,12 @@ main() {
exit 0
fi
# Check if this is a continuation -c flag
if [ "$1" = "-c" ]; then
log_info "Continuing setup..."
CONTINUATION=true
fi
# Check prerequisites
check_prerequisites
@ -456,10 +462,13 @@ main() {
fi
# Run setup steps
warning_prompt
prepare_hostname
check_selinux
install_nix
if [ "$CONTINUATION" != "true" ]; then
warning_prompt
prepare_hostname
check_selinux
install_nix
fi
install_home_manager
setup_symlinks