nixpkgs/modules/security/ca.nix
Eelco Dolstra c548597976 * Allow Git to find the CA bundle.
svn path=/nixos/trunk/; revision=27735
2011-07-12 12:45:48 +00:00

23 lines
346 B
Nix

{ config, pkgs, ... }:
with pkgs.lib;
{
config = {
environment.etc = singleton
{ 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
'';
};
}