summaryrefslogtreecommitdiff
path: root/services/mailserver.nix
blob: 7807e0bc8f9b529b4d9638c2ea726d600eec0045 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ hashedPasswordFile }: { pkgs, ... }:
{
  mailserver = {
    stateVersion = 3;
    fqdn = "mail.crashoverburn.com";
    domains = [ "mail.crashoverburn.com" "crashoverburn.com" ];
    enable = true;
    # A list of all login accounts. To create the password hashes, use
    # nix-shell -p mkpasswd --run 'mkpasswd -sm bcrypt'
    loginAccounts = {
      "crash@crashoverburn.com" = {
        inherit hashedPasswordFile;
        aliases = [ "postmaster@mail.crashoverburn.com" "overburn@crashoverburn.com" ];
      };
    };
    certificateScheme = "acme-nginx";
  };
}