refactor setup script to remove continuation flag handling and streamline installation steps
All checks were successful
Nix Format Check / check-format (push) Successful in 38s

This commit is contained in:
Menno van Leeuwen 2025-01-15 13:33:57 +01:00
parent 0747d2a784
commit a3f2b7d759
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

View File

@ -446,12 +446,6 @@ 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
@ -461,14 +455,10 @@ main() {
git clone "$GIT_REPO" "$DOTFILES_DIR" || die "Failed to clone dotfiles repository"
fi
# Run setup steps
if [ "$CONTINUATION" != "true" ]; then
warning_prompt
prepare_hostname
check_selinux
install_nix
fi
warning_prompt
prepare_hostname
check_selinux
install_nix
install_home_manager
setup_symlinks