forked from lix-project/hydra
Add smtpHost option
This commit is contained in:
parent
d6f188a01a
commit
7dad867498
|
@ -21,6 +21,9 @@ let
|
||||||
SSL_CERT_FILE = "/etc/ssl/certs/ca-certificates.crt"; # Remove in 16.03
|
SSL_CERT_FILE = "/etc/ssl/certs/ca-certificates.crt"; # Remove in 16.03
|
||||||
PGPASSFILE = "${baseDir}/pgpass";
|
PGPASSFILE = "${baseDir}/pgpass";
|
||||||
NIX_REMOTE_SYSTEMS = concatStringsSep ":" cfg.buildMachinesFiles;
|
NIX_REMOTE_SYSTEMS = concatStringsSep ":" cfg.buildMachinesFiles;
|
||||||
|
} // optionalAttrs (cfg.smtpHost != null) {
|
||||||
|
EMAIL_SENDER_TRANSPORT = "SMTP";
|
||||||
|
EMAIL_SENDER_TRANSPORT_host = cfg.smtpHost;
|
||||||
} // hydraEnv // cfg.extraEnv;
|
} // hydraEnv // cfg.extraEnv;
|
||||||
|
|
||||||
serverEnv = env //
|
serverEnv = env //
|
||||||
|
@ -112,6 +115,15 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
smtpHost = mkOption {
|
||||||
|
type = types.nullOr types.str;
|
||||||
|
default = null;
|
||||||
|
example = ["localhost"];
|
||||||
|
description = ''
|
||||||
|
Hostname of the SMTP server to use to send email.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
tracker = mkOption {
|
tracker = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "";
|
default = "";
|
||||||
|
|
Loading…
Reference in a new issue