Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/allaman/mac-setup
My Ansible Playbook to configure my MacBook
https://github.com/allaman/mac-setup
ansible automation configuration macos tools workstation
Last synced: about 1 month ago
JSON representation
My Ansible Playbook to configure my MacBook
- Host: GitHub
- URL: https://github.com/allaman/mac-setup
- Owner: Allaman
- Created: 2021-12-23T23:18:25.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-14T22:36:22.000Z (about 1 month ago)
- Last Synced: 2024-12-14T23:22:07.046Z (about 1 month ago)
- Topics: ansible, automation, configuration, macos, tools, workstation
- Language: Shell
- Homepage:
- Size: 35.2 KB
- Stars: 31
- Watchers: 3
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Mac Setup
⚙️ Automatic configuration for my Mac.
ℹ️ Blog post about [moving to macOS](https://rootknecht.net/blog/moving-to-macOS/) after ten years of Linux.
Automatic installation is based upon the following [Ansible](https://www.ansible.com/) roles:
- [geerlingguy.homebrew](https://github.com/geerlingguy/ansible-collection-mac/tree/master/roles/homebrew) manages homebrew installation and packages
- [geerlingguy.mas](https://github.com/geerlingguy/ansible-collection-mac/tree/master/roles/mas) manages apps from the app store
- [ansible-role-binaries](https://github.com/Allaman/ansible-role-binaries) installs binaries
- [ansible-role-dotfiles](https://github.com/Allaman/ansible-role-dotfiles) configures my shell/dots
- [ansible-role-pip](https://github.com/Allaman/ansible-role-pip) installs pip packagesAlso kudos to [Jeff Geerling](https://www.jeffgeerling.com/) for his work with [mac-dev-playbook](https://github.com/geerlingguy/mac-dev-playbook) which obviously influenced my setup.
## Bootstrap
Bootstrap your system to be able to run Ansible:
- `xcode-select --install`
- `export PATH=$PATH:$HOME/Library/Python/3.8/bin:/opt/homebrew/bin`
- `pip3 install --upgrade pip`
- `pip3 install --user ansible`## Run Ansible
Run Ansible with the provided Makefile:
- `make install` to download required ansible roles
- `make configure` to run `ansible-playbook` (sudo password required)## Manual installation
Some apps need to be installed manually
- Download [TinkerTool](https://www.bresink.biz/download2.php?ln=1&dl=TinkerTool&MBSKey=2b2ed27cad1c358503aac7223b8d345f) for some extra tweaks
- Chromium cask not working as expected -> [download](https://download-chromium.appspot.com/?platform=Mac_Arm&type=snapshots) manually and run `xattr -cr /Applications/Chromium.app`
- Download and install [FastRAWViewer](https://www.fastrawviewer.com/)
- Download and install a patched [font](https://github.com/shaunsingh/SFMono-Nerd-Font-Ligaturized) for your terminal
- Download and install [AlDente Pro](https://apphousekitchen.com/)## Configuration
Configuration is mainly done via my [dotfiles](https://github.com/Allaman/dots) repo via [ansible-roles-dotfiles](https://github.com/Allaman/ansible-role-dotfiles) and a private dotfiles repo, both using [chezmoi](https://www.chezmoi.io/) under the hood.
## Replace Finder with Forklift4
[Docs](https://binarynights.com/manual)
```sh
defaults write -g NSFileViewer -string com.binarynights.ForkLift;
defaults write com.apple.LaunchServices/com.apple.launchservices.secure LSHandlers -array-add '{LSHandlerContentType="public.folder";LSHandlerRoleAll="com.binarynights.ForkLift";}'
```