From f24ffc4919ed2cab8e49a85ff038a09c069aa2ca Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Mon, 24 Oct 2016 17:56:30 +0200 Subject: 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. --- nixos/modules/services/mail/opensmtpd.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'nixos/modules/services') diff --git a/nixos/modules/services/mail/opensmtpd.nix b/nixos/modules/services/mail/opensmtpd.nix index 3b493d2015dc..f048a382ca42 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. ''; }; -- cgit 1.4.1