server-configuration/services/mailserver.nix
2025-03-03 16:32:18 +01:00

31 lines
807 B
Nix

{fetchFromGitLab, ...}:
{
imports = [
(fetchFromGitLab {
owner = "simple-nixos-webserver";
repo = "nixos-mailserver";
tag = "v2.3.0";
hash = ""; # TODO: Fill this hash
})
];
mailserver = {
enable = true;
fqdn = "mail.spoodythe.one";
domains = [ "spoodythe.one" ];
# A list of all login accounts. To create the password hashes, use
# nix-shell -p mkpasswd --run 'mkpasswd -sm bcrypt'
loginAccounts = {
"spoody@spoodythe.one" = {
hashedPassword = "$2b$05$sTD8VXUF76uu1LOThuOSTOC8iCe2w4jgwExwpP.cnN7UOa.YEO9G2";
aliases = ["admin@spoodythe.one"];
};
};
# Use Let's Encrypt certificates. Note that this needs to set up a stripped
# down nginx and opens port 80.
certificateScheme = "acme-nginx";
};
}