Skip to content

Latest commit

 

History

History
71 lines (52 loc) · 1.41 KB

File metadata and controls

71 lines (52 loc) · 1.41 KB

starterpack

Consistent setup for my macOS machines.

Quick Start

  1. Install Nix
curl -L https://nixos.org/nix/install | sh -s -- --daemon
mkdir -p ~/.config/nix
echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
  1. Clone this repo:
git clone git@github.com:krmannix/starterpack ~/.config/starterpack
cd ~/.config/starterpack
  1. Run bootstrap script:
./bootstrap.sh

Initial Run Installation

After cloning and running bootstrap, apply the nix-darwin configuration:

sudo nix --extra-experimental-features "nix-command flakes" run nix-darwin -- switch --flake ~/.config/starterpack#default --impure

Updates

Create an update

Edit any file in ~/.config/starterpack/, then apply:

darwin-rebuild switch --flake ~/.config/starterpack#default --impure

Some configs are copied rather than symlinked. After editing them in place, sync back to the repo:

nix-sync

Review changes, commit, and push up.

Pull an update

cd ~/.config/starterpack
git pull
darwin-rebuild switch --flake ~/.config/starterpack#default --impure

What's managed?

  • CLI tools
  • Language environment managers
  • Terminals, Browsers, and utility apps like Alfred
  • Zsh configuration
  • Git aliases & settings
  • Cursor/VSCode settings
  • iTerm2 preferences
  • Claude settings + ~/CLAUDE.md
  • Git user name and email
  • SSH keys
  • Claude API key