hosts/suwako: add mailserver for amneesh.com

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2025-08-30 16:46:44 +05:30
parent 943956f119
commit 34b2c4d015
4 changed files with 29 additions and 0 deletions

View File

@@ -15,6 +15,7 @@
};
domain = {
natto = "weirdnatto.in";
amneesh = "amneesh.com";
};
};

View File

@@ -77,6 +77,7 @@ in
system = "aarch64-linux";
modules = [
./suwako
inputs.mailserver.nixosModules.mailserver
] ++ commonModules;
};
};

View File

@@ -10,6 +10,7 @@
./hardware.nix
./boot.nix
./services.nix
./mailserver.nix
];
time.timeZone = "Asia/Kolkata";

View File

@@ -0,0 +1,26 @@
{
conf,
...
}:
{
mailserver =
let
domain = conf.network.addresses.domain.amneesh;
in
rec {
enable = true;
stateVersion = 1;
fqdn = "mail.${domain}";
sendingFqdn = fqdn;
domains = [ domain ];
certificateDomains = [ "mail.${domain}" ];
certificateScheme = "acme-nginx";
loginAccounts = {
"me@${domain}" = {
hashedPasswordFile = "/var/secrets/me@${domain}.key";
};
};
enablePop3 = false;
enablePop3Ssl = false;
};
}