nixos/prosody: fix serialization error if httpFileShare is null
This commit is contained in:
@@ -585,18 +585,14 @@ let
|
|||||||
${muc.extraConfig}
|
${muc.extraConfig}
|
||||||
'') cfg.muc}
|
'') cfg.muc}
|
||||||
|
|
||||||
${
|
${lib.optionalString (cfg.httpFileShare != null) ''
|
||||||
lib.optionalString (cfg.httpFileShare != null) ''
|
Component ${toLua cfg.httpFileShare.domain} "http_file_share"
|
||||||
Component ${toLua cfg.httpFileShare.domain} "http_file_share"
|
modules_disabled = { "s2s" }
|
||||||
modules_disabled = { "s2s" }
|
${lib.optionalString (cfg.httpFileShare.http_host != null) ''
|
||||||
''
|
|
||||||
+ lib.optionalString (cfg.httpFileShare.http_host != null) ''
|
|
||||||
http_host = "${cfg.httpFileShare.http_host}"
|
http_host = "${cfg.httpFileShare.http_host}"
|
||||||
''
|
''}
|
||||||
+ ''
|
${settingsToLua " http_file_share_" (cfg.httpFileShare // { domain = null; })}
|
||||||
${settingsToLua " http_file_share_" (cfg.httpFileShare // { domain = null; })}
|
''}
|
||||||
''
|
|
||||||
}
|
|
||||||
|
|
||||||
${lib.concatStringsSep "\n" (
|
${lib.concatStringsSep "\n" (
|
||||||
lib.mapAttrsToList (n: v: ''
|
lib.mapAttrsToList (n: v: ''
|
||||||
|
|||||||
Reference in New Issue
Block a user