Personal macOS configuration using nix-darwin
Find a file
Neon 163e55b2f9
NixOS 25.11 (#7)
Bumping nix configs to newly released channel 25.11
2025-12-12 11:02:40 -05:00
nixvim Bump nix-darwin to to nixpkgs channel 25.05 (#5) 2025-06-13 08:11:58 -07:00
systems NixOS 25.11 (#7) 2025-12-12 11:02:40 -05:00
configuration.nix Multi-System Configuration (#4) 2025-04-30 12:16:15 -07:00
flake.lock NixOS 25.11 (#7) 2025-12-12 11:02:40 -05:00
flake.nix NixOS 25.11 (#7) 2025-12-12 11:02:40 -05:00
README.md formatting 2025-03-06 12:29:07 -08:00

Installing on a new Mac

Basic instructions for how to get a brand new mac running with this config.

Step 1. Install Determinate Nix

Install Nix. We want Determinate Nix so that it survives MacOS version updates.

Step 2. Clone this repo

We need to make our nix-darwin directory and clone this repo into it.

sudo mkdir -p /etc/nix-darwin
sudo chown $(id -nu):$(id -ng) /etc/nix-darwin
cd /etc/nix-darwin
git clonehttps://github.com/neonspectra/nix-darwin.git .

Step 3. Installing nix-darwin

from nix-darwin readme

Unlike NixOS, nix-darwin does not have an installer, you can just run darwin-rebuild switch to install nix-darwin. As darwin-rebuild won't be installed in your PATH yet, you can use the following command:

# To use Nixpkgs unstable:
nix run nix-darwin/master#darwin-rebuild -- switch
# To use Nixpkgs 24.11:
nix run nix-darwin/nix-darwin-24.11#darwin-rebuild -- switch