From 0408858a8a46ee86b934a2bfde276e8e160b5fbf Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Mon, 16 Sep 2013 19:02:20 +0200 Subject: [PATCH] Set CURL_CA_BUNDLE env variable for nix-daemon to allow pulling from a binary cache on https. Did not add to nix.envVars to avoid being added to shellInit. --- modules/services/misc/nix-daemon.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/services/misc/nix-daemon.nix b/modules/services/misc/nix-daemon.nix index 58fb3322c201..6ae96028979b 100644 --- a/modules/services/misc/nix-daemon.nix +++ b/modules/services/misc/nix-daemon.nix @@ -292,7 +292,7 @@ in path = [ nix pkgs.openssl pkgs.utillinux ] ++ optionals cfg.distributedBuilds [ pkgs.openssh pkgs.gzip ]; - environment = cfg.envVars; + environment = cfg.envVars // { CURL_CA_BUNDLE = "/etc/ssl/certs/ca-bundle.crt"; }; serviceConfig = { ExecStart = "@${nix}/bin/nix-daemon nix-daemon --daemon";