diff --git a/lib.nix b/lib.nix index 1b96ab7..191abc0 100644 --- a/lib.nix +++ b/lib.nix @@ -6,7 +6,7 @@ rec { firstListenerOfType = type: ls: lib.lists.findFirst (isListenerType type) (throw "No listener with resource: ${type} configured") ls; - # Get an attrset of the host and port from a listener + # Get an attrset of the host and port from a listener connectionInfo = l: { host = lib.head l.bind_addresses; port = l.port; diff --git a/synapse-module/default.nix b/synapse-module/default.nix index 4f71fb5..04e5f9c 100644 --- a/synapse-module/default.nix +++ b/synapse-module/default.nix @@ -17,7 +17,7 @@ let }); # TODO: Align better with the upstream module - wrapped = cfg.package.override { + wrapped = cfg.package.override { inherit (cfg) plugins; extras = [ "postgres" diff --git a/synapse-module/workers.nix b/synapse-module/workers.nix index f56f16c..8b3b2d7 100644 --- a/synapse-module/workers.nix +++ b/synapse-module/workers.nix @@ -56,7 +56,7 @@ in { workerSettingsType = instanceCfg: types.submodule { freeformType = format.type; - + options = { worker_app = mkOption { type = types.enum [ @@ -293,7 +293,7 @@ in { stream_writers.events = mkIf (wcfg.eventPersisters > 0) - (lib.genList (i: "auto-event-persist${toString (i + 1)}") wcfg.eventPersisters); + (lib.genList (i: "auto-event-persist${toString (i + 1)}") wcfg.eventPersisters); update_user_directory_from_worker = mkIf wcfg.useUserDirectoryWorker "auto-user-dir";