summary refs log blame commit diff
path: root/nixos/modules/security/ca.nix
blob: 05cd1c3ecc17fc9c8e3eba7bcd2fed9a04bf8ed4 (plain) (tree)
1
2
3
4
5
6
7
8
9







                      
                     

                                                      
         
        
 


                                                                                  
 


    
{ config, pkgs, ... }:

with pkgs.lib;

{

  config = {

    environment.etc =
      [ { source = "${pkgs.cacert}/etc/ca-bundle.crt";
          target = "ssl/certs/ca-bundle.crt";
        }
      ];

    environment.variables.OPENSSL_X509_CERT_FILE = "/etc/ssl/certs/ca-bundle.crt";
    environment.variables.CURL_CA_BUNDLE = "/etc/ssl/certs/ca-bundle.crt";
    environment.variables.GIT_SSL_CAINFO = "/etc/ssl/certs/ca-bundle.crt";

  };

}