Skip to content

Instantly share code, notes, and snippets.

# 1. Recommended to install NIX determinate manually by going here: https://determinate.systems/nix/macos/overview
# 2. When the script opens 1Password site, download and install it and sign in
# 3. After signing in enable SSH Agent by going to Settings | Developer
# 4. Eventually, you'll be asked to install developer tools - you should do it now: $ xcode-select --install
# 5. After install restart for some settings to apply
curl -L https://gist.github.com/tsgautier/7ff22ab87c09ffde31bafba6be188623/raw/bootstrap.sh | bash
@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."