added mailserver

This commit is contained in:
Snorre 2025-03-03 16:32:18 +01:00
parent 56ec8b861f
commit a5f02fda9f
2 changed files with 31 additions and 0 deletions

View file

@ -4,6 +4,7 @@
./services/forgejo.nix
./services/vaultwarden.nix
./services/jellyfin.nix
./services/mailserver.nix
./services/misc.nix
./modules/git.nix

30
services/mailserver.nix Normal file
View file

@ -0,0 +1,30 @@
{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";
};
}