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=19572wip/yesman
parent
6502806689
commit
8a6346e477
@ -0,0 +1,21 @@ |
||||
{ 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 |
||||
''; |
||||
|
||||
}; |
||||
|
||||
} |
Loading…
Reference in new issue