Install nix. When prompted whether to install Determinate Nix, answer "No".
curl -fsSL https://install.determinate.systems/nix | sh -s -- installClone and link the nix-config.
mkdir -p ~/gits
cd ~/gits
git clone https://github.com/okuuva/nix.git nix-config
sudo ln -sv ~/gits/nix-config /etc/nix-darwin
cd /etc/nix-darwin
git switch workRun darwin-rebuild first with nix run
sudo nix run nix-darwin/master#darwin-rebuild -- switch --flake .#oula-mbp-a2485-workAfter cloning dotfiles (not linking them here), run the following command:
scripts/make-links.sh --work --display --keyboardsRestart.
Going forward, darwin-rebuild should be in PATH:
sudo darwin-rebuild switch