diff options
author | Joachim Fasting <joachifm@fastmail.fm> | 2016-10-24 17:56:30 +0200 |
---|---|---|
committer | Joachim Fasting <joachifm@fastmail.fm> | 2016-10-26 03:01:56 +0200 |
commit | f24ffc4919ed2cab8e49a85ff038a09c069aa2ca (patch) | |
tree | 00908169793f419d1e1ae621b7616096fe8fea47 /nixos/modules/services/mail/opensmtpd.nix | |
parent | 3851afc8eb5f3c5d691ec73a370ee26fd0bd385e (diff) |
opensmtpd service: require serverConfiguration
If the daemon won't function without a valid config, it makes no sense to default to an empty config. Instead, turn that case into a build failure.
Diffstat (limited to 'nixos/modules/services/mail/opensmtpd.nix')
-rw-r--r-- | nixos/modules/services/mail/opensmtpd.nix | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/nixos/modules/services/mail/opensmtpd.nix b/nixos/modules/services/mail/opensmtpd.nix index 3b493d2015dc6..f048a382ca425 100644 --- a/nixos/modules/services/mail/opensmtpd.nix +++ b/nixos/modules/services/mail/opensmtpd.nix @@ -48,15 +48,13 @@ in { serverConfiguration = mkOption { type = types.lines; - default = ""; example = '' listen on lo accept for any deliver to lmtp localhost:24 ''; description = '' The contents of the smtpd.conf configuration file. See the - OpenSMTPD documentation for syntax information. If this option - is left empty, the OpenSMTPD server will not start. + OpenSMTPD documentation for syntax information. ''; }; |