Skip to content

Declarative system configurations using nixOS, nix-darwin, and home-manager

License

Notifications You must be signed in to change notification settings

kclejeune/system

Repository files navigation

MacOS System Configuration with Nix

nix-darwin build

Installing Nix Package Manager

Run the following to perform a multi-user installation for darwin or standard linux. This step is skipped on NixOS.

if [[ $(uname -s) == 'Darwin' ]]; then
    sh <(curl -L https://nixos.org/nix/install) --daemon --darwin-use-unencrypted-nix-store-volume
else
    sh <(curl -L https://nixos.org/nix/install) --daemon
fi

System Bootstrapping

Clone this repository into ~/.nixpkgs with

git clone https://github.com/kclejeune/system ~/.nixpkgs

You can bootstrap a new system using

cd ~/.nixpkgs && nix develop --command "darwinInstall"

or run the build only with darwinTest instead of darwinInstall.

Installing Homebrew dependencies

The few leftover homebrew packages and brew casks are stored in ~/Brewfile. They can be installed using cd ~ && brew bundle.