From 82037871bb12293e55092b5a7b6b4fa2dfce433c Mon Sep 17 00:00:00 2001 From: Travis Athougies Date: Fri, 12 Nov 2021 08:28:39 -0800 Subject: [PATCH] nixos/postfix: Use better types for submissionOptions and submissionsOptions (#138205) --- nixos/modules/services/mail/postfix.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/mail/postfix.nix b/nixos/modules/services/mail/postfix.nix index 6fc09682e0c0..23d3574ae27c 100644 --- a/nixos/modules/services/mail/postfix.nix +++ b/nixos/modules/services/mail/postfix.nix @@ -294,7 +294,7 @@ in }; submissionOptions = mkOption { - type = types.attrs; + type = with types; attrsOf str; default = { smtpd_tls_security_level = "encrypt"; smtpd_sasl_auth_enable = "yes"; @@ -312,7 +312,7 @@ in }; submissionsOptions = mkOption { - type = types.attrs; + type = with types; attrsOf str; default = { smtpd_sasl_auth_enable = "yes"; smtpd_client_restrictions = "permit_sasl_authenticated,reject";