Nix for MacBook Air
-
Install Command Line Tools
xcode-select --install
-
Install Rosetta 2
softwareupdate --install-rosetta --agree-to-license
-
Install Nix 1
curl --proto '=https' --tlsv1.2 -sSf -L https://artifacts.nixos.org/experimental-installer | \ sh -s -- install
-
Clone the repository into
~/nixgit clone https://gitlab.com/paste/nix.git ~/nix -
nix run nix-darwin/master#darwin-rebuild -- switch --flake ~/nix
| Name | Definition |
|---|---|
nu |
nix flake update --commit-lock-file --flake ~/nix |
nr |
sudo darwin-rebuild switch --flake ~/nix |
lg |
lazygit |