From 6e3de2b50b38c7997768a227ffb82e96c62c39b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Wed, 26 Feb 2020 14:45:57 +0100 Subject: [PATCH] Enable sandbox on darwin --- lib/install-nix.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/install-nix.sh b/lib/install-nix.sh index 399222b..924c15a 100755 --- a/lib/install-nix.sh +++ b/lib/install-nix.sh @@ -31,6 +31,9 @@ sh <(curl https://nixos.org/nix/install) --daemon # write nix.conf again as installation overwrites it nixConf +# Enable sandbox on Darwin/Linux +sudo sh -c 'echo sandbox = true >> /etc/nix/nix.conf' + # macOS needs certificates hints if [[ $OSTYPE =~ darwin ]]; then cert_file=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt