katzen-cafe/modules/mailserver.nix

31 lines
836 B
Nix
Raw Normal View History

2023-07-30 16:24:46 +02:00
{ inputs, ... }:
{
imports = [ inputs.simple-nixos-mailserver.nixosModule ];
mailserver = {
enable = true;
fqdn = "mail.katzen.cafe";
sendingFqdn = "katzen.cafe";
2023-08-05 18:46:25 +02:00
domains = [ "katzen.cafe" ];
2023-07-30 16:24:46 +02:00
loginAccounts = {
"admin@katzen.cafe" = {
hashedPasswordFile = "/var/lib/secrets/admin-mail-pw";
aliases = [ "postmaster@katzen.cafe" "abuse@katzen.cafe" ];
};
2023-08-05 18:46:25 +02:00
"noreply@katzen.cafe" = {
hashedPasswordFile = "/var/lib/secrets/noreply-mail-pw";
2023-07-30 16:24:46 +02:00
};
};
certificateScheme = "acme-nginx";
};
deployment.keys = {
"admin-mail-pw" = {
2023-08-06 20:17:41 +02:00
keyCommand = [ "pass" "mailpws/hashes/admin" ];
2023-07-30 16:24:46 +02:00
destDir = "/var/lib/secrets";
};
2023-08-05 18:46:25 +02:00
"noreply-mail-pw" = {
2023-08-06 20:17:41 +02:00
keyCommand = [ "pass" "mailpws/hashes/noreply" ];
2023-07-30 16:24:46 +02:00
destDir = "/var/lib/secrets";
};
};
}