k 3 exim-smarthost: add ssl options

This commit is contained in:
lassulus 2016-07-23 19:16:41 +02:00
parent 917bdf236f
commit 3d8318d625

View file

@ -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