File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ add_config() {
1919}
2020# Set jobs to number of cores
2121add_config " max-jobs = auto"
22+ if [[ $OSTYPE =~ darwin ]]; then
23+ add_config " ssl-cert-file = /etc/ssl/cert.pem"
24+ fi
2225# Allow binary caches for user
2326add_config " trusted-users = root ${USER:- } "
2427# Add github access token
7881
7982sh " $workdir /install" " ${installer_options[@]} "
8083
81- if [[ $OSTYPE =~ darwin ]]; then
82- # macOS needs certificates hints
83- 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-
8984# Set paths
9085echo " /nix/var/nix/profiles/default/bin" >> " $GITHUB_PATH "
9186# new path for nix 2.14
You can’t perform that action at this time.
0 commit comments