Migrating Mac Configs to Nix
Declarative approach to setting up my Macbook workstation So I have the habit of wiping my machine every 3-12 months (Pretty subjective window 馃し) and I usually don鈥檛 have a hard time getting my workstation up and running again in an hour. I use chezmoi for my dotfiles configurations, homebrew for my package manager and oh-my-zsh + starship for my terminal prompt. Ansible is a fine tool to automate this process, but it feels a bit clunky running a playbook against macOS. This is where nix-darwin saves the day (or, well, a hour of my time). Creating one Nix flake allows me to declaratively install the packages鈥擟LI and GUI鈥攐nto my machine with a simple rebuild command. It also keeps my machine clean by ensuring I don鈥檛 have any lingering packages I forgot to delete when testing them out 馃榿 ...