From 5bcd6e001c739ec5ab3ac54300bc23d9a63cebf8 Mon Sep 17 00:00:00 2001 From: niten Date: Fri, 13 Oct 2023 13:33:13 -0700 Subject: [PATCH] Combine lists first --- mail-server.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mail-server.nix b/mail-server.nix index 48fd5d3..0b22966 100644 --- a/mail-server.nix +++ b/mail-server.nix @@ -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"; }; };