Skip to content

Instantly share code, notes, and snippets.

@mybigman
Forked from angerman/Installation.md
Created October 27, 2021 08:49
Show Gist options
  • Save mybigman/fa1bd6625d72b7f102446f5c9ac2f74a to your computer and use it in GitHub Desktop.
Save mybigman/fa1bd6625d72b7f102446f5c9ac2f74a to your computer and use it in GitHub Desktop.
Installing nix on macOS BigSur

The nixos.org website suggests to use:

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

For macOS on Intel (x86_64) or Apple Silicon (arm64) based macs, we need to use

sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume

That's it!

Now we can use nix as usual:

nix build -L '(import <nixpkgs> {}).hello.overrideAttrs (_: { HELLO = "WORLD"; })'

or

nix-shell -p haskell.compiler.ghc882

should just work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment