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.
This commit is contained in:
euxane 2024-06-23 11:47:12 +02:00
parent 420c9a60c0
commit 8daa31600a

View File

@ -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 = {