diff options
author | pennae <github@quasiparticle.net> | 2023-01-04 00:45:35 +0100 |
---|---|---|
committer | pennae <github@quasiparticle.net> | 2023-01-10 10:31:52 +0100 |
commit | 0715ecf936a642ec6e019333114c8ff2d92360d0 (patch) | |
tree | 34a58a01ccfb0187719f0b6902e9b2d4de454e1c /nixos/modules/services/mail | |
parent | 6930425922a51d353b1a52ea1140ecc03528bca3 (diff) | |
download | nixpkgs-0715ecf936a642ec6e019333114c8ff2d92360d0.tar nixpkgs-0715ecf936a642ec6e019333114c8ff2d92360d0.tar.gz nixpkgs-0715ecf936a642ec6e019333114c8ff2d92360d0.tar.bz2 nixpkgs-0715ecf936a642ec6e019333114c8ff2d92360d0.tar.lz nixpkgs-0715ecf936a642ec6e019333114c8ff2d92360d0.tar.xz nixpkgs-0715ecf936a642ec6e019333114c8ff2d92360d0.tar.zst nixpkgs-0715ecf936a642ec6e019333114c8ff2d92360d0.zip |
nixos/manual: normalize <programlisting>
makes sure that program listing tags are separated from their contents by exactly a newline character. this makes the markdown translation easier to verify (since no new newlines need to be inserted), and there's no rendering difference anyway.
Diffstat (limited to 'nixos/modules/services/mail')
-rw-r--r-- | nixos/modules/services/mail/mailman.xml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/nixos/modules/services/mail/mailman.xml b/nixos/modules/services/mail/mailman.xml index 9510cbe82c5..c1ad5d1a285 100644 --- a/nixos/modules/services/mail/mailman.xml +++ b/nixos/modules/services/mail/mailman.xml @@ -16,7 +16,8 @@ <title>Basic usage with Postfix</title> <para> For a basic configuration with Postfix as the MTA, the following settings are suggested: - <programlisting>{ config, ... }: { + <programlisting> +{ config, ... }: { services.postfix = { enable = true; relayDomains = ["hash:/var/lib/mailman/data/postfix_domains"]; @@ -36,7 +37,8 @@ }; services.nginx.virtualHosts."lists.example.org".enableACME = true; networking.firewall.allowedTCPPorts = [ 25 80 443 ]; -}</programlisting> +} +</programlisting> </para> <para> DNS records will also be required: @@ -60,7 +62,8 @@ <title>Using with other MTAs</title> <para> Mailman also supports other MTA, though with a little bit more configuration. For example, to use Mailman with Exim, you can use the following settings: - <programlisting>{ config, ... }: { + <programlisting> +{ config, ... }: { services = { mailman = { enable = true; @@ -82,7 +85,8 @@ config = builtins.readFile ./exim.conf; }; }; -}</programlisting> +} +</programlisting> </para> <para> The exim config needs some special additions to work with Mailman. Currently |