summary refs log tree commit diff
path: root/nixos/modules/services/mail/opensmtpd.nix
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2016-10-24 17:56:30 +0200
committerJoachim Fasting <joachifm@fastmail.fm>2016-10-26 03:01:56 +0200
commitf24ffc4919ed2cab8e49a85ff038a09c069aa2ca (patch)
tree00908169793f419d1e1ae621b7616096fe8fea47 /nixos/modules/services/mail/opensmtpd.nix
parent3851afc8eb5f3c5d691ec73a370ee26fd0bd385e (diff)
downloadnixlib-f24ffc4919ed2cab8e49a85ff038a09c069aa2ca.tar
nixlib-f24ffc4919ed2cab8e49a85ff038a09c069aa2ca.tar.gz
nixlib-f24ffc4919ed2cab8e49a85ff038a09c069aa2ca.tar.bz2
nixlib-f24ffc4919ed2cab8e49a85ff038a09c069aa2ca.tar.lz
nixlib-f24ffc4919ed2cab8e49a85ff038a09c069aa2ca.tar.xz
nixlib-f24ffc4919ed2cab8e49a85ff038a09c069aa2ca.tar.zst
nixlib-f24ffc4919ed2cab8e49a85ff038a09c069aa2ca.zip
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.
Diffstat (limited to 'nixos/modules/services/mail/opensmtpd.nix')
-rw-r--r--nixos/modules/services/mail/opensmtpd.nix4
1 files changed, 1 insertions, 3 deletions
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.
         '';
       };