This is the configuration I currently use to manage my coding computers. Some of the other branches are used for NixOS gaming desktops and VMs.
- Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install Determinate Nix Installer:
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --determinate
- Clone repo:
mkdir -p ~/src
git clone https://github.com/kriswill/dotfiles ~/src/dotfiles
cd ~/src/dotfiles
- Move determinate's nix.conf out of the way:
sudo mv /etc/nix/nix.conf /etc/nix/nix.conf.before-nix-darwin
- Install (nix-darwin)
nix --extra-experimental-features "nix-command flakes" run nix-darwin -- switch --flake .