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




            
                     

                                                      
         
        
 




                                                                
 


    
{ config, lib, pkgs, ... }:

with lib;

{

  config = {

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

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

  };

}