From 00c9e35779cbb298d6395a6e2c2534007a92976f Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Fri, 21 Mar 2025 04:52:46 -0700 Subject: add a ton of VPS upgrades; update website; live life --- nix/modules/maddy.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 nix/modules/maddy.nix (limited to 'nix/modules/maddy.nix') diff --git a/nix/modules/maddy.nix b/nix/modules/maddy.nix new file mode 100644 index 0000000..158b6b5 --- /dev/null +++ b/nix/modules/maddy.nix @@ -0,0 +1,18 @@ +{ lib, config, options, ... }: +{ + services.maddy = { + enable = lib.mkDefault config.monorepo.profiles.server.enable; + openFirewall = true; + primaryDomain = "ret2pop.net"; + tls = { + loader = "acme"; + }; + config = builtins.replaceStrings [ + "imap tcp://0.0.0.0:143" + "submission tcp://0.0.0.0:587" + ] [ + "imap tls://0.0.0.0:993 tcp://0.0.0.0:143" + "submission tls://0.0.0.0:465 tcp://0.0.0.0:587" + ] options.services.maddy.config.default; + }; +} -- cgit v1.3