mirror of
https://forge.katzen.cafe/katzen-cafe/katzen-cafe.git
synced 2024-11-24 22:58:44 +01:00
31 lines
836 B
Nix
31 lines
836 B
Nix
{ inputs, ... }:
|
|
{
|
|
imports = [ inputs.simple-nixos-mailserver.nixosModule ];
|
|
mailserver = {
|
|
enable = true;
|
|
fqdn = "mail.katzen.cafe";
|
|
sendingFqdn = "katzen.cafe";
|
|
domains = [ "katzen.cafe" ];
|
|
loginAccounts = {
|
|
"admin@katzen.cafe" = {
|
|
hashedPasswordFile = "/var/lib/secrets/admin-mail-pw";
|
|
aliases = [ "postmaster@katzen.cafe" "abuse@katzen.cafe" ];
|
|
};
|
|
"noreply@katzen.cafe" = {
|
|
hashedPasswordFile = "/var/lib/secrets/noreply-mail-pw";
|
|
};
|
|
};
|
|
certificateScheme = "acme-nginx";
|
|
};
|
|
deployment.keys = {
|
|
"admin-mail-pw" = {
|
|
keyCommand = [ "pass" "mailpws/hashes/admin" ];
|
|
destDir = "/var/lib/secrets";
|
|
};
|
|
"noreply-mail-pw" = {
|
|
keyCommand = [ "pass" "mailpws/hashes/noreply" ];
|
|
destDir = "/var/lib/secrets";
|
|
};
|
|
};
|
|
}
|