Combine lists first

This commit is contained in:
niten 2023-10-13 13:33:13 -07:00
parent 0d906369ca
commit 5bcd6e001c
1 changed files with 3 additions and 3 deletions

View File

@ -256,9 +256,9 @@ in {
dovecotAdminConfig = {
source-file = pkgs.writeText "dovecot-admin.conf" (concatStringsSep "\n"
[ "doveadm_password = ${readFile dovecotAdminPasswd}" ]
++ (optional (cfg.imap.api-port != null)
"doveadm_api_key = ${readFile dovecotApiKey}"));
([ "doveadm_password = ${readFile dovecotAdminPasswd}" ]
++ (optional (cfg.imap.api-port != null)
"doveadm_api_key = ${readFile dovecotApiKey}")));
target-file = "/run/dovecot-secrets/admin.conf";
};
};