tv pki: immigrate certificate environment
This commit is contained in:
parent
d825d2db87
commit
f940a17905
@ -17,6 +17,7 @@ with import <stockholm/lib>;
|
||||
./bash
|
||||
./htop.nix
|
||||
./nginx
|
||||
./pki
|
||||
./ssh.nix
|
||||
./sshd.nix
|
||||
./vim.nix
|
||||
@ -90,15 +91,6 @@ with import <stockholm/lib>;
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
environment.variables =
|
||||
flip genAttrs (_: "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt") [
|
||||
"CURL_CA_BUNDLE"
|
||||
"GIT_SSL_CAINFO"
|
||||
"SSL_CERT_FILE"
|
||||
];
|
||||
}
|
||||
|
||||
{
|
||||
services.cron.enable = false;
|
||||
services.nscd.enable = false;
|
||||
|
14
tv/2configs/pki/default.nix
Normal file
14
tv/2configs/pki/default.nix
Normal file
@ -0,0 +1,14 @@
|
||||
with import <stockholm/lib>;
|
||||
{ config, ... }: let
|
||||
|
||||
certFile = config.environment.etc."ssl/certs/ca-certificates.crt".source;
|
||||
|
||||
in {
|
||||
|
||||
environment.variables = flip genAttrs (_: toString certFile) [
|
||||
"CURL_CA_BUNDLE"
|
||||
"GIT_SSL_CAINFO"
|
||||
"SSL_CERT_FILE"
|
||||
];
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user