Configuration and automation for my various computers.
ansible-playbook -i inventory/lakitu --vault-password-file <vault-password-file> lakitu.yml
Replace inventory and playbook as appropriate.
Append -K
when running tasks that require root.
brew_upgrade
- Run ansible as normal.
- As root:
pacman -Syu --noconfirm && pacman -Sc --noconfirm
- Run ansible against morty over ssh.
Secrets are encrypted with ansible-vault, and are kept in a private repository. Clone the secrets repository into the checkout of this repository.
- Install Homebrew
- This should install xcode command line tools automatically. If not, run
xcode-select --install
.
- This should install xcode command line tools automatically. If not, run
brew install ansible
- Run ansible as normal.
Ironically for an automation repo, I currently configure a few things on my mac(s) via the GUI. I figure that if these settings move / change their options / and removed, it'll be easier to learn that through the GUI.
A lot of this is automatable (https://mths.be/macos / https://github.com/mathiasbynens/dotfiles/blob/master/.macos), and I might crib from that in the future.
Unless otherwise spelt out, start in "System Preferences":
- Install any hardware-specific drivers
- Install mac app store apps
- On personal laptop: bitwarden, authy (ipad version)
- General
- About: change computer name
- Sharing: change hostname
- Appearance: auto
- Desktop & Dock
- automatically hide the dock
- Click wallpaper to reveal desktop - "only in stage manager"
- Users and Groups
- Login items: add flycut.
- Privacy & Security
- General: require password immediately after sleep begins.
- Filevault: yes
- Accessibility: allow flycut to control the computer.
- Sound
- Disable startup sound
- Control centre
- Sound -> Always show in menu bar
- Keyboard
- Key repeat fastest, delay until repeat shortest.
- Turn off keyboard backlight after 5s
- Keyboard shortcuts -> Modifier keys -> Remap caps lock to escape.
- Extra maps for PC keyboard. Set to ISO, swap option and command
- Use standard function keys on external keyboards (keyboard shortcuts -> function keys)
- Shortcuts -> Input sources -> disable ^-space for "previous input source" - it's my tmux prefix.
- Input sources -> Edit -> Disable smart quotes
- Also disable insert full stop after double space.
- Trackpad
- Allow tap to click
- Scroll and zoom: untick natural scroll
- Displays
- On the pro 16", default scaling seems sensible: looks like 1792x1120, on the 3072x1920 screen.
- Enable night shift
- Battery
- Power adapter: prevent computer from sleeping automatically
- Spotlight
- Privacy: exclude ~/workspace to avoid mds_stores doing work every time I compile things.
- TouchID for sudo (personal laptop only)
- Add
auth sufficient pam_tid.so
to 2nd line of/etc/pam.d/sudo
- Set up https://github.com/fabianishere/pam_reattach
- This appears to be reset by certain OS updates, so I don't actually tend to have this enabled.
- Add