From 581a1341225b995dc4f3ee8b15657b1cd31a1146 Mon Sep 17 00:00:00 2001 From: Sander Date: Sun, 21 Sep 2025 17:13:54 +0200 Subject: [PATCH] refactor: document ssl-cert-file vs NIX_SSL_CERT_FILE --- install-nix.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install-nix.sh b/install-nix.sh index 86c766b..46fe0e4 100755 --- a/install-nix.sh +++ b/install-nix.sh @@ -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