Integrate mailman3 service into my existing configuration.

This commit is contained in:
Kevin Baensch 2019-07-03 08:38:11 +02:00
parent df12a85010
commit d9ecea0a17
4 changed files with 42 additions and 14 deletions

View file

@ -5,6 +5,7 @@ with lib;
{
imports = [
../../options/machine.nix
../../options/mailman3/options.nix
];
config.machine = rec {
@ -48,4 +49,22 @@ with lib;
allowedTCPPortRanges = [];
};
};
config.services.mailman3 = {
enable = true;
site_owner = "derped@ophanim.de";
database = {
type = "mysql";
name = "mailman3";
user = "mailman3";
host = "localhost";
port = 3306;
passwordFile = "/secret/mailman3_db";
};
mta = {
lmtp_host = "mail.ophanim.de";
smtp_host = "mail.ophanim.de";
smtp_user = "mailman3";
smtp_passFile = "/secret/mailman3_mail";
};
};
}