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 {
|
serverConfiguration = mkOption {
|
||||||
type = types.lines;
|
type = types.lines;
|
||||||
default = "";
|
|
||||||
example = ''
|
example = ''
|
||||||
listen on lo
|
listen on lo
|
||||||
accept for any deliver to lmtp localhost:24
|
accept for any deliver to lmtp localhost:24
|
||||||
'';
|
'';
|
||||||
description = ''
|
description = ''
|
||||||
The contents of the smtpd.conf configuration file. See the
|
The contents of the smtpd.conf configuration file. See the
|
||||||
OpenSMTPD documentation for syntax information. If this option
|
OpenSMTPD documentation for syntax information.
|
||||||
is left empty, the OpenSMTPD server will not start.
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user