From 5f63e1e64ad57628ab8224bb4e885d487bd04f5e Mon Sep 17 00:00:00 2001 From: provokateurin Date: Sat, 29 Nov 2025 16:55:45 +0100 Subject: [PATCH] nixos/nextcloud: Fix services.nextcloud.settings.mail_smtpstreamoptions option type The option is not a list, but an associative array: https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/email_configuration.html#how-can-i-send-mail-using-self-signed-certificates-or-use-starttls-with-self-signed-certificates (cherry picked from commit 178b07716d2928df24c575966e0d81ad7aab53ff) --- nixos/modules/services/web-apps/nextcloud.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix index c866f1b7c062..f5ffd2c46a81 100644 --- a/nixos/modules/services/web-apps/nextcloud.nix +++ b/nixos/modules/services/web-apps/nextcloud.nix @@ -1100,8 +1100,8 @@ in ''; }; mail_smtpstreamoptions = lib.mkOption { - type = lib.types.listOf lib.types.str; - default = [ ]; + type = lib.types.attrsOf (lib.types.attrsOf lib.types.anything); + default = { }; description = '' This depends on `mail_smtpmode`. Array of additional streams options that will be passed to underlying Swift mailer implementation. '';