mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2024-11-10 05:48:34 +01:00
38 lines
719 B
Nix
38 lines
719 B
Nix
|
{ lib, config, data, ...}:
|
||
|
let
|
||
|
inherit (data.host) rootDomain;
|
||
|
inherit (data.services.mailserver) domain;
|
||
|
gitDomain = data.services.git.domain;
|
||
|
in
|
||
|
{
|
||
|
mailserver = {
|
||
|
enable = true;
|
||
|
fqdn = domain;
|
||
|
domains = [
|
||
|
rootDomain
|
||
|
domain
|
||
|
gitDomain
|
||
|
];
|
||
|
certificateScheme = "acme";
|
||
|
|
||
|
enableManageSieve = true;
|
||
|
indexDir = "/var/lib/dovecot/indices";
|
||
|
dkimKeyBits = 4096;
|
||
|
|
||
|
loginAccounts = {
|
||
|
"lgm@${rootDomain}" = {
|
||
|
aliases = [
|
||
|
"lgmrszd@${rootDomain}"
|
||
|
"postmaster@${rootDomain}"
|
||
|
"abuse@${rootDomain}"
|
||
|
];
|
||
|
};
|
||
|
"forgejo@${rootDomain}" = {
|
||
|
aliases = [
|
||
|
"@${gitDomain}"
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|