- Install Nix, nix-darwin, home-manager and Homebrew
- Install CLI and GUI apps
- Change system settings
- Install my dotfiles
- Change the hostname and username in
./flake.nix
and./hosts/*.nix
- Go to Settings -> Security & Privacy -> Privacy -> Full Disk Access and allow the Terminal app
git clone https://github.com/khuedoan/macos-setup macos-setup
cd macos-setup
make
Then reboot.
- Install UTM
- Download macOS IPSW recovery file
- Create a macOS VM in UTM using the downloaded IPSW file
- Run
xcode-select --install
in the new VM - (Optional) Clone the VM to a new one for easy rollback (UTM doesn't support snapshot yet)
- Run the above commands