summaryrefslogtreecommitdiff
path: root/os/kay/modules/mail.nix
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2025-01-06 10:26:17 +0530
committersinanmohd <sinan@sinanmohd.com>2025-01-06 20:54:19 +0530
commit5c274e6214c321a8ba90d473e3500989d6e84ed1 (patch)
tree4465855aa6ae6423a0c853fa6896b80e4e18a0a9 /os/kay/modules/mail.nix
parentcf6f1cf7c1d9100da519db1c9977152d6f246ecb (diff)
kay/postgresql: init
Diffstat (limited to 'os/kay/modules/mail.nix')
-rw-r--r--os/kay/modules/mail.nix15
1 files changed, 10 insertions, 5 deletions
diff --git a/os/kay/modules/mail.nix b/os/kay/modules/mail.nix
index 5c8cb96..bd2681a 100644
--- a/os/kay/modules/mail.nix
+++ b/os/kay/modules/mail.nix
@@ -19,7 +19,7 @@ in {
"mail.${domain}/password" = {};
};
- systemd.services.stalwart-mail.serviceConfig.loadCredential = [
+ systemd.services.stalwart-mail.serviceConfig.LoadCredential = [
"password:${config.sops.secrets."mail.${domain}/password".path}"
"dkim_rsa:${config.sops.secrets."mail.${domain}/dkim_rsa".path}"
@@ -101,10 +101,15 @@ in {
lookup = "rocksdb";
directory = "in-memory";
};
- store.rocksdb = {
- type = "rocksdb";
- path = "rocksdb";
- compression = "lz4";
+ store.postgresql = {
+ type = "postgresql";
+ host = "localhost";
+ database = "stalwart";
+ user = "stalwart";
+ password = "ass";
+ timeout = "15s";
+ tls.enable = false;
+ pool.max-connections = 10;
};
directory."in-memory" = {