Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is nix.conf located when installed on OSX? [closed]

I installed nix on osx using this command:

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

Following instructions here:

https://hydra.nixos.org/build/119559243/download/1/manual/#sect-macos-installation

I'm trying to build a project that uses the nix shell and it's telling me to edit something in a file called nix.conf. However the project documentation was setup using a linux or nixos distribution so not sure where this file is located on osx. (The docs say to look in /etc/nix/nix.conf, but this file doesn't exist in osx)

like image 235
Brian Yeh Avatar asked Jul 28 '20 20:07

Brian Yeh


1 Answers

/etc/nix/nix.conf may not exist, you need to create it.

like image 117
iElectric Avatar answered Oct 18 '22 21:10

iElectric