git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commitf24ffc4919ed2cab8e49a85ff038a09c069aa2ca authorJoachim Fasting <joachifm@fastmail.fm> dateMon 24 Oct 2016, 17:56 (10 years ago) parent3851afc
1 file changed+1−3
nixos/modules/services/mail/opensmtpd.nix+1−3
nixos/modules/services/mail/opensmtpd.nix+1−3
@@ -48,15 +48,13 @@ in {
4848
4949 serverConfiguration = mkOption {
5050 type = types.lines;
51− default = "";
5251 example = ''
5352 listen on lo
5453 accept for any deliver to lmtp localhost:24
5554 '';
5655 description = ''
5756 The contents of the smtpd.conf configuration file. See the
58− OpenSMTPD documentation for syntax information. If this option
59− is left empty, the OpenSMTPD server will not start.
57+ OpenSMTPD documentation for syntax information.
6058 '';
6159 };
6260