diff --git a/modules/global/security.nix b/modules/global/security.nix index f648945..b966db5 100644 --- a/modules/global/security.nix +++ b/modules/global/security.nix @@ -84,7 +84,10 @@ with lib; }; }; - common = { + common = rec { + domain = "inx.moe"; + subdomain = subdomain: "${subdomain}.${domain}"; + nginx = rec { ssl-cert = { enableACME = true; @@ -103,5 +106,24 @@ with lib; user = "${account}s1"; host = "${account}.rsync.net"; }; + + email = rec { + withUser = user: "${user}@${domain}"; + outgoingUser = "noreply"; + incomingUser = "incoming"; + outgoing = withUser outgoingUser; + incoming = withUser incomingUser; + withSubaddress = subaddress: "${outgoingUser}+${subaddress}@${domain}"; + + smtp = { + address = "smtp.purelymail.com"; + SSLTLS = 465; + STARTTLS = 587; + }; + imap = { + address = "imap.purelymail.com"; + port = 993; + }; + }; }; }