summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-07-23 19:16:41 +0200
committerlassulus <lass@aidsballs.de>2016-07-23 19:16:41 +0200
commit3d8318d625db60060a3624081059f93b66ca5c46 (patch)
treea57426f1f08ba50b06f1c60b32da8ee85f747894 /krebs
parent917bdf236f8b38efeafd6c7b697a437ac18f64a6 (diff)
k 3 exim-smarthost: add ssl options
Diffstat (limited to 'krebs')
-rw-r--r--krebs/3modules/exim-smarthost.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/krebs/3modules/exim-smarthost.nix b/krebs/3modules/exim-smarthost.nix
index 8b6627678..cfe2e5f04 100644
--- a/krebs/3modules/exim-smarthost.nix
+++ b/krebs/3modules/exim-smarthost.nix
@@ -86,6 +86,16 @@ let
default = [];
};
+ ssl_cert = mkOption {
+ type = types.nullOr types.str;
+ default = null;
+ };
+
+ ssl_key = mkOption {
+ type = types.nullOr types.str;
+ default = null;
+ };
+
system-aliases = mkOption {
type = types.listOf (types.submodule ({
options = {
@@ -142,7 +152,9 @@ let
syslog_timestamp = false
syslog_duplication = false
- tls_advertise_hosts =
+ ${optionalString (cfg.ssl_cert != null) "tls_certificate = ${cfg.ssl_cert}"}
+ ${optionalString (cfg.ssl_key != null) "tls_privatekey = ${cfg.ssl_key}"}
+ tls_advertise_hosts =${optionalString (cfg.ssl_cert != null) " *"}
begin acl