refactor: document ssl-cert-file vs NIX_SSL_CERT_FILE

This commit is contained in:
Sander 2025-09-21 17:13:54 +02:00
parent d914f6d9e8
commit 581a134122
No known key found for this signature in database

View file

@ -26,12 +26,13 @@ trap 'rm -rf "$workdir"' EXIT
# Configure Nix
add_config() {
echo "$1" >> "$workdir/nix.conf"
echo "$1" >>"$workdir/nix.conf"
}
add_config "show-trace = true"
# Set jobs to number of cores
add_config "max-jobs = auto"
# TODO: is this still necessary if we set NIX_SSL_CERT_FILE below?
# Configure the nix-daemon to use certificates.
# In multi-user installs, NIX_SSL_CERT_FILE only works if set in the daemon's service file.
if [[ $OSTYPE =~ darwin ]]; then
add_config "ssl-cert-file = /etc/ssl/cert.pem"
fi