- Install nix for package and dotfiles management
- Install homebrew for GUI app management
- Ensure Xcode command line tools are installed and you are signed into the App Store
- Ensure you are signed into the App Store
- Clone this repository
git clone git@github.com:ecklf/dotfiles.git
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
Clear the default macOS dock:
defaults write com.apple.dock persistent-apps -array && killall Dock
# 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://nix.dev/manual/nix/2.22/installation/upgrading
# Updating packages
nix flake lock --update-all
nix flake lock --update-input <input>