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:
parent
3851afc8eb
commit
f24ffc4919
@ -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.
|
||||
'';
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user