<p>macOS <code>nix</code> setup on x86_64 (Intel, AMD) and aarch64 (Apple Silicon) should be identical.  Running the installer from the <a href="https://nixos.org/download.html" rel="nofollow noreferrer">official website</a>, should get you a proper install.</p>
<p>You <em>do</em> want to add the iohk substituter to get access to the cached builds:</p>
<pre><code>https://hydra.iohk.io
hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
</code></pre>
<p>I'm fairly sure that the iohk.cachix.org instance is defunct (or not updated anymore really). So it should be fairly safe to remove the following</p>
<pre><code>https://iohk.cachix.org
iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo=
</code></pre>
<p>Please don't enable sanboxing on macOS, while that is in principle a good idea, it will lead to crashes with complex nix expressions. See <a href="https://github.com/NixOS/nixpkgs/issues/116341" rel="nofollow noreferrer">Status of macOS | nixos/nixpkgs#116341</a></p>

CC BY-SA 4.0
2022-01-23T01:27:37.100Z
This /etc/nix/nix.conf wound up working for me, based on your help, for my masOS i7 v12.1 monterey: https://cardano.stackexchange.com/a/6745/4012
TheStophe
CC BY-SA 4.0
2022-01-21T00:56:46.677Z
2022-01-21T00:56:46.677Z
angerman
<p>Does anyone have the recommended <code>nix.conf</code> file to use for <strong>macOS Monterey i7</strong>?</p>
<p>Following a few different tutorials, my current .conf file looks like:</p>
<pre><code>build-users-group = nixbld
substituters        = https://hydra.iohk.io https://iohk.cachix.org https://cache.nixos.org/
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=volume
</code></pre>
<p>However, <a href="https://github.com/input-output-hk/plutus-apps#nix-1" rel="nofollow noreferrer">https://github.com/input-output-hk/plutus-apps#nix-1</a> for macOS also recommends adding:</p>
<pre><code>sandbox = true
extra-sandbox-paths = /System/Library/Frameworks /System/Library/PrivateFrameworks /usr/lib /private/tmp /private/var/tmp /usr/bin/env
</code></pre>
<p>Any other working steps are appreciated.  I wouldn't follow tutorials for the M1 i'm assuming too.  Thanks!</p>
<p>Ref:
[https://www.punkbit.com/hacking/plutus-developer-environment-setup-on-macos-monterey/]</p>

<plutus-pioneer-program><nix><macos>
macOS Monterey i7, what is the best `nix.conf` file to use?
# macOS Monterey i7, what is the best `nix.conf` file to use?

(Asked by: username_0 on 2022-01-20)

Does anyone have the recommended nix.conf file to use for macOS Monterey i7?
Following a few different tutorials, my current .conf file looks like:
build-users-group = nixbld
substituters        = https://hydra.iohk.io https://iohk.cachix.org https://cache.nixos.org/
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=volume

However, https://github.com/input-output-hk/plutus-apps#nix-1 for macOS also recommends adding:
sandbox = true
extra-sandbox-paths = /System/Library/Frameworks /System/Library/PrivateFrameworks /usr/lib /private/tmp /private/var/tmp /usr/bin/env

Any other working steps are appreciated.  I wouldn't follow tutorials for the M1 i'm assuming too.  Thanks!
Ref:
[https://www.punkbit.com/hacking/plutus-developer-environment-setup-on-macos-monterey/]

**Tags:** plutus-pioneer-program, nix, macos

---

## 1 answers

### Answer by username_1 on 2022-01-21. Score: 1

macOS nix setup on x86_64 (Intel, AMD) and aarch64 (Apple Silicon) should be identical.  Running the installer from the official website, should get you a proper install.
You do want to add the iohk substituter to get access to the cached builds:
https://hydra.iohk.io
hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=

I'm fairly sure that the iohk.cachix.org instance is defunct (or not updated anymore really). So it should be fairly safe to remove the following
https://iohk.cachix.org
iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo=

Please don't enable sanboxing on macOS, while that is in principle a good idea, it will lead to crashes with complex nix expressions. See Status of macOS | nixos/nixpkgs#116341

> **Comments:**
> **username_0**: This /etc/nix/nix.conf wound up working for me, based on your help, for my masOS i7 v12.1 monterey: https://cardano.stackexchange.com/a/6745/4012  

---

