8a6346e477
the CURL_CA_BUNDLE environment variable. This allows curl to work without the `-k' flag on https sites with a properly signed certificate. svn path=/nixos/trunk/; revision=19572
21 lines
297 B
Nix
21 lines
297 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
|
|
'';
|
|
|
|
};
|
|
|
|
}
|