From 5c274e6214c321a8ba90d473e3500989d6e84ed1 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Mon, 6 Jan 2025 10:26:17 +0530 Subject: kay/postgresql: init --- os/kay/modules/mail.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'os/kay/modules/mail.nix') 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" = { -- cgit v1.2.3