quasar/mailserver.nix

21 lines
419 B
Nix
Raw Normal View History

2024-09-02 14:06:24 +02:00
{ base-domain, ... }:
let
fqdn = "mail.${base-domain}";
in
{
mailserver = {
enable = true;
inherit fqdn;
domains = [ base-domain ];
loginAccounts = {
"khais.colin@${base-domain}" = {
# nix-shell -p mkpasswd --run 'mkpasswd -sm bcrypt'
hashedPasswordFile = "/etc/nixos/secrets/mailserver/khais.colin.hashpassword";
};
};
certificateScheme = "acme-nginx";
};
}