nixpkgs/modules/security/ca.nix

22 lines
297 B
Nix
Raw Normal View History

{ 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
'';
};
}