From 6530ae24158dab8f26c3756ee48b7f1f242607f1 Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 28 Oct 2016 14:07:29 +0200 Subject: [PATCH] m 2 default: use ca-bundle for CURL GIT, PIP --- 2configs/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/2configs/default.nix b/2configs/default.nix index cb6fe55..bbe1080 100644 --- a/2configs/default.nix +++ b/2configs/default.nix @@ -90,9 +90,14 @@ with import ; "d /tmp 1777 root root - -" ]; nix.nixPath = [ "/var/src" ]; - environment.variables = { + environment.variables = let + ca-bundle = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"; + in { NIX_PATH = mkForce "/var/src"; EDITOR = mkForce "vim"; + CURL_CA_BUNDLE = ca-bundle; + GIT_SSL_CAINFO = ca-bundle; + SSL_CERT_FILE = ca-bundle; }; environment.systemPackages = with pkgs; [