summaryrefslogtreecommitdiffstats
path: root/tv/2configs/pki
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2019-04-20 18:54:58 +0200
committertv <tv@krebsco.de>2019-04-20 18:54:58 +0200
commit4ba8fd95d5d4fd63acc61e9adddf771eda0fef02 (patch)
treeb6452d05b928b3b56c6af2aa4b2496fdf66711fb /tv/2configs/pki
parent7104abdb98661ba4831871112b6e03f6ee0d3c96 (diff)
tv pki: immigrate certificate environment
Diffstat (limited to 'tv/2configs/pki')
-rw-r--r--tv/2configs/pki/default.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/tv/2configs/pki/default.nix b/tv/2configs/pki/default.nix
new file mode 100644
index 0000000..f22b9a6
--- /dev/null
+++ b/tv/2configs/pki/default.nix
@@ -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"
+ ];
+
+}