We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c203fd commit 8ab3881Copy full SHA for 8ab3881
install-nix.sh
@@ -19,6 +19,9 @@ add_config() {
19
}
20
# Set jobs to number of cores
21
add_config "max-jobs = auto"
22
+if [[ $OSTYPE =~ darwin ]]; then
23
+ add_config "ssl-cert-file = /etc/ssl/cert.pem"
24
+fi
25
# Allow binary caches for user
26
add_config "trusted-users = root ${USER:-}"
27
# Add github access token
@@ -78,14 +81,6 @@ done
78
81
79
82
sh "$workdir/install" "${installer_options[@]}"
80
83
-if [[ $OSTYPE =~ darwin ]]; then
- # macOS needs certificates hints
- cert_file=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt
84
- echo "NIX_SSL_CERT_FILE=$cert_file" >> "$GITHUB_ENV"
85
- export NIX_SSL_CERT_FILE=$cert_file
86
- sudo launchctl setenv NIX_SSL_CERT_FILE "$cert_file"
87
-fi
88
-
89
# Set paths
90
echo "/nix/var/nix/profiles/default/bin" >> "$GITHUB_PATH"
91
# new path for nix 2.14
0 commit comments