summary refs log tree commit diff
path: root/nixos/modules/security/ca.nix
blob: 57764dc870f3277074e59abafa5e74c77d65264e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ 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";
      };

  };

}