Skip to content

Instantly share code, notes, and snippets.

@tsgautier
tsgautier / bootstrap.sh
Last active February 28, 2026 19:01
Nix-Darwin Bootstrap Script
#!/bin/bash
set -e
# --- 1. PRE-FLIGHT: Apple Developer Tools ---
if ! xcode-select -p &>/dev/null; then
echo "Apple Command Line Tools not found. Starting installation..."
xcode-select --install
echo "--------------------------------------------------------"
echo "A macOS dialog has appeared. Please click 'Install'."
echo "Wait for the installation to finish, THEN press ENTER here."