From 8daa31600aa913217fc747c832b8b94a1f9f2719 Mon Sep 17 00:00:00 2001 From: euxane Date: Sun, 23 Jun 2024 11:47:12 +0200 Subject: [PATCH] nixos/stalwart-mail: remove deprecated {queue,report}.path settings Since stalwart-mail 0.6.0, queue and report files are located in the shared `storage.{data,blob}` stores. The `{queue,report}.path` settings no longer had any effect since then. I'm also removing the creation of the associated extra directories in the `preStart` script. This should not cause any issue with old setups since 0.6.0 was already packaged when 24.05 was released. --- nixos/modules/services/mail/stalwart-mail.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/nixos/modules/services/mail/stalwart-mail.nix b/nixos/modules/services/mail/stalwart-mail.nix index ed3c5389354c..29f1a01522b4 100644 --- a/nixos/modules/services/mail/stalwart-mail.nix +++ b/nixos/modules/services/mail/stalwart-mail.nix @@ -37,8 +37,6 @@ in { ansi = mkDefault false; # no colour markers to journald enable = mkDefault true; }; - queue.path = mkDefault "${dataDir}/queue"; - report.path = mkDefault "${dataDir}/reports"; store = if useLegacyStorage then { # structured data in SQLite, blobs on filesystem db.type = mkDefault "sqlite"; @@ -83,9 +81,9 @@ in { after = [ "local-fs.target" "network.target" ]; preStart = if useLegacyStorage then '' - mkdir -p ${dataDir}/{queue,reports,data/blobs} + mkdir -p ${dataDir}/data/blobs '' else '' - mkdir -p ${dataDir}/{queue,reports,db} + mkdir -p ${dataDir}/db ''; serviceConfig = {