Skip to content

Instantly share code, notes, and snippets.

@wilspi
Last active August 12, 2020 10:20
Show Gist options
  • Save wilspi/aad81f832d030d80fca91dfa264a1f8a to your computer and use it in GitHub Desktop.
Save wilspi/aad81f832d030d80fca91dfa264a1f8a to your computer and use it in GitHub Desktop.
Setup nix

Setup: Mac

If using Catalina

sudo mkdir -p /System/Volumes/Data/nix
sudo chown -R `whoami` /System/Volumes/Data/nix
echo "nix\t/System/Volumes/Data/nix" | sudo tee /etc/synthetic.conf

And reboot.

Install nix

export NIX_IGNORE_SYMLINK_STORE=1
curl https://nixos.org/nix/install | sh

You may also have to do the following:

nix-store --add-fixed --recursive sha256 /Applications/Xcode.app

Run nix shell

Use nix shell in pure mode to work on our code.

nix-shell --pure

Setup: Arch Linux

Follow steps here: https://gist.github.com/wilspi/847b3794a5dda51a62b8bfd4fd968f3b

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