Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

nixos/postfix: Use better types for submissionOptions and submissionsOptions (#138205)

authored by Travis Athougies and committed by GitHub 82037871 90111672

+2 -2
+2 -2
nixos/modules/services/mail/postfix.nix
··· 294 }; 295 296 submissionOptions = mkOption { 297 - type = types.attrs; 298 default = { 299 smtpd_tls_security_level = "encrypt"; 300 smtpd_sasl_auth_enable = "yes"; ··· 312 }; 313 314 submissionsOptions = mkOption { 315 - type = types.attrs; 316 default = { 317 smtpd_sasl_auth_enable = "yes"; 318 smtpd_client_restrictions = "permit_sasl_authenticated,reject";
··· 294 }; 295 296 submissionOptions = mkOption { 297 + type = with types; attrsOf str; 298 default = { 299 smtpd_tls_security_level = "encrypt"; 300 smtpd_sasl_auth_enable = "yes"; ··· 312 }; 313 314 submissionsOptions = mkOption { 315 + type = with types; attrsOf str; 316 default = { 317 smtpd_sasl_auth_enable = "yes"; 318 smtpd_client_restrictions = "permit_sasl_authenticated,reject";