Nix for MacBook Air
-
Install Command Line Tools
xcode-select --install
-
Install Rosetta 2
softwareupdate --install-rosetta --agree-to-license
-
Install Nix
Make sure to enable full disk access for your terminal.
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | \ sh -s -- install
-
Clone the repository into
~/.dotfiles
:git clone https://github.com/tahirmurata/nix-darwin.git ~/nix
-
Run the
link.sh
script:~/nix/link.sh
-
Install
nix-darwin
:Since darwin-rebuild isn't installed yet, the command uses nix to run darwin-rebuild directly from the nixpkgs repository.
nix run nix-darwin/master#darwin-rebuild -- switch --flake ~/nix
-
Setup git with gh:
gh auth login && gh auth setup-git
This repository is released into the public domain under the Unlicense license