From 28189a7ac0226c2ee2d3738a4ead413de4be095e Mon Sep 17 00:00:00 2001 From: vaw Date: Thu, 22 May 2025 19:02:30 +0200 Subject: [PATCH] nixos/matrix-synapse: Fix merging log configuration --- nixos/modules/services/matrix/synapse.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/nixos/modules/services/matrix/synapse.nix b/nixos/modules/services/matrix/synapse.nix index 1adc02852a4d..b13488940e81 100644 --- a/nixos/modules/services/matrix/synapse.nix +++ b/nixos/modules/services/matrix/synapse.nix @@ -124,12 +124,13 @@ let genLogConfigFile = logName: format.generate "synapse-log-${logName}.yaml" ( - cfg.log - // optionalAttrs (cfg.log ? handlers.journal) { - handlers.journal = cfg.log.handlers.journal // { - SYSLOG_IDENTIFIER = logName; - }; - } + attrsets.recursiveUpdate cfg.log ( + optionalAttrs (cfg.log ? handlers.journal) { + handlers.journal = cfg.log.handlers.journal // { + SYSLOG_IDENTIFIER = logName; + }; + } + ) ); toIntBase8 =