summary refs log tree commit diff
path: root/modules/security/ca.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/security/ca.nix')
-rw-r--r--modules/security/ca.nix18
1 files changed, 12 insertions, 6 deletions
diff --git a/modules/security/ca.nix b/modules/security/ca.nix
index 4c7fe34389b..0ac4f565bd6 100644
--- a/modules/security/ca.nix
+++ b/modules/security/ca.nix
@@ -6,15 +6,21 @@ with pkgs.lib;
 
   config = {
 
-    environment.etc = singleton
-      { source = "${pkgs.cacert}/etc/ca-bundle.crt";
-        target = "ca-bundle.crt";
-      };
+    environment.etc =
+      [ { source = "${pkgs.cacert}/etc/ca-bundle.crt";
+          target = "ssl/certs/ca-bundle.crt";
+        }
+
+        # Backward compatibility; may remove at some point.
+        { source = "${pkgs.cacert}/etc/ca-bundle.crt";
+          target = "ca-bundle.crt";
+        }
+      ];
 
     environment.shellInit =
       ''
-        export CURL_CA_BUNDLE=/etc/ca-bundle.crt
-        export GIT_SSL_CAINFO=/etc/ca-bundle.crt
+        export CURL_CA_BUNDLE=/etc/ssl/certs/ca-bundle.crt
+        export GIT_SSL_CAINFO=/etc/ssl/certs/ca-bundle.crt
       '';
       
   };