forked from the-distro/infra
36 lines
852 B
Nix
36 lines
852 B
Nix
{ config, lib, inputs, ... }: let
|
|
cfg = config.bagel.services.mail;
|
|
inherit (lib) mkEnableOption mkIf;
|
|
in {
|
|
imports = [
|
|
inputs.simple-nixos-mailserver.nixosModule
|
|
];
|
|
options.bagel.services.mail = {
|
|
enable = mkEnableOption "E-Mail";
|
|
};
|
|
config = mkIf cfg.enable {
|
|
mailserver = {
|
|
enable = true;
|
|
fqdn = "mail.infra.forkos.org";
|
|
domains = [
|
|
"vzfdfp.de"
|
|
];
|
|
forwards = let
|
|
infraMembers = [
|
|
"forkos.janik@aq0.de"
|
|
];
|
|
boardMembers = [
|
|
"forkos-board@lahfa.xyz"
|
|
"vzfdfp.janik@aq0.de"
|
|
];
|
|
in {
|
|
"abuse@vzfdfp.de" = infraMembers;
|
|
"postmaster@vzfdfp.de" = infraMembers;
|
|
|
|
"board@vzfdfp.de" = boardMembers;
|
|
"vorstand@vzfdfp.de" = boardMembers;
|
|
};
|
|
certificateScheme = "acme-nginx";
|
|
};
|
|
};
|
|
}
|