Skip to content

Requirements

Yejun Su edited this page Oct 30, 2023 · 1 revision

Nix

For macOS:

sh <(curl -L https://nixos.org/nix/install)

See https://nixos.org/download for other systems.

Nix flakes

Nix flakes is a feature to be enabled to use these templates:

echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf

Direnv

Install with nix profile for quick start:

nix profile install nixpkgs#nix-direnv
echo 'source $HOME/.nix-profile/share/nix-direnv/direnvrc' >> ~/.config/direnv/direnvrc

See https://github.com/nix-community/nix-direnv#installation for other ways.

Clone this wiki locally