summary refs log tree commit diff
path: root/host/Rory-nginx/services/email/autoconfig.nix
diff options
context:
space:
mode:
Diffstat (limited to 'host/Rory-nginx/services/email/autoconfig.nix')
-rw-r--r--host/Rory-nginx/services/email/autoconfig.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/host/Rory-nginx/services/email/autoconfig.nix b/host/Rory-nginx/services/email/autoconfig.nix
new file mode 100644
index 0000000..7dd183a
--- /dev/null
+++ b/host/Rory-nginx/services/email/autoconfig.nix
@@ -0,0 +1,18 @@
+{ ... }:
+{
+  services.go-autoconfig = {
+    enable = true;
+    settings = {
+      service_addr = ":1323";
+      domain = "autodiscover.rory.gay";
+      imap = {
+        server = "rory.gay";
+        port = 993;
+      };
+      smtp = {
+        server = "rory.gay";
+        port = 587;
+      };
+    };
+  };
+}