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.
This commit is contained in:
Joachim Fasting 2016-10-24 17:56:30 +02:00
parent 3851afc8eb
commit f24ffc4919

View File

@ -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.
'';
};