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() {
19
19
}
20
20
# Set jobs to number of cores
21
21
add_config " max-jobs = auto"
22
+ if [[ $OSTYPE =~ darwin ]]; then
23
+ add_config " ssl-cert-file = /etc/ssl/cert.pem"
24
+ fi
22
25
# Allow binary caches for user
23
26
add_config " trusted-users = root ${USER:- } "
24
27
# Add github access token
78
81
79
82
sh " $workdir /install" " ${installer_options[@]} "
80
83
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
-
89
84
# Set paths
90
85
echo " /nix/var/nix/profiles/default/bin" >> " $GITHUB_PATH "
91
86
# new path for nix 2.14
You can’t perform that action at this time.
0 commit comments