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 cd73837..0cd1098 100644 --- a/synapse-module/default.nix +++ b/synapse-module/default.nix @@ -35,7 +35,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 343a57f..292b6c7 100644 --- a/synapse-module/workers.nix +++ b/synapse-module/workers.nix @@ -58,7 +58,7 @@ in { workerSettingsType = instanceCfg: types.submodule { freeformType = format.type; - + options = { worker_app = mkOption { type = types.enum [ @@ -295,7 +295,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";