MacOS development box setup automated using Ansible playbook.
Configures my personal preferences but you can customize it for your liking.
- Install desktop and terminal apps using Homebrew
- Setup terminal (iterm2 fonts, ohmyzsh, custom theme, fzf etc.)
- Setup git aliases
- Setup system defaults (finder behavior, full keyboard access, disable natural scrolling)
- Remap keys (by default right command to option)
- Share ssh configs
-
Install Homebrew
-
Clone this project:
mkdir -p $HOME/Projects/github/bwilczynski && cd $_
git clone https://github.com/bwilczynski/macos-devbox.git && cd macos-devbox
- Install Ansible inside virtual environment
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
On Apple M1, or if the installation fails because cryptography wheel cannot be found you might want to build it from sources:
https://cryptography.io/en/latest/installation.html
brew install [email protected] rust
env LDFLAGS="-L$(brew --prefix [email protected])/lib" CFLAGS="-I$(brew --prefix [email protected])/include" pip install -r requirements.txt
You may also be required to install Rosetta 2:
sudo softwareupdate --install-rosetta
- Install Ansible requirements
ansible-galaxy install -r requirements.yml
- Run Ansible playbook
ansible-playbook local.yml