-
Download an OS image from https://www.raspberrypi.com/software/operating-systems/. I like starting with 64 bit lite! It's small and you can always add a desktop later.
-
Plug the SD card into your mac and use
diskutil listto find it. Size is a good trick for picking the right one! -
sudo chown "$(whoami)" /dev/rdiskX(where X is the number of the SD card). -
xzcat ~/Downloads/2025-10-01-raspios-trixie-arm64-lite.img.xz | dd of=/dev/rdiskX bs=4M -
Save
custom.tomlfrom this gist, then edit it.
- Change
hostnameto something unique. - Set the WiFi SSID and password.
- Optionally, change
usernameandpassword(or remove thepasswordline if you're only going to log in with an SSH key). - Optionally, uncomment
ssh_import_idand changemygithubusernameto your github username if you have an SSH key on GitHub, or uncomment and fill inauthorized_keyswith the contents of~/.ssh/id_whatever.pub.
cp custom.toml /Volumes/bootfs/
Eject the SD card and put it in your Pi. Save the .xz file and custom.toml for next time. That's it ✨