- Install nix for package and dotfiles management
- Clone this repository
git clone git@github.com:ecklf/dotfiles.git
- Install homebrew for GUI app management
- Ensure Xcode command line tools are installed (should have been done by brew)
- Ensure you are signed into the App Store
For a fresh macOS install you can clear your bloated dock using:
defaults write com.apple.dock persistent-apps -array && killall Dock
# For the first run — `darwin-rebuild`` won't be installed in your path yet
nix run nix-darwin --extra-experimental-features flakes --extra-experimental-features nix-command -- switch --flake ~/dotfiles/nix#omega
# For consecutive runs
# Build the flake `omega` (see flake.nix)
darwin-rebuild build --flake ~/dotfiles/nix#omega
# Switch to `omega` (see flake.nix)
darwin-rebuild switch --flake ~/dotfiles/nix#omega
# Upgrading nix — https://nixos.org/manual/nix/stable/installation/upgrading
# Updating packages
nix flake lock --update-all
nix flake lock --update-input <input>