1 import ../make-test-python.nix ({ pkgs, ... }: {
2 name = "matrix-synapse-workers";
3 meta = with pkgs.lib; {
4 maintainers = teams.matrix.members;
13 services.postgresql = {
15 initialScript = pkgs.writeText "synapse-init.sql" ''
16 CREATE ROLE "matrix-synapse" WITH LOGIN PASSWORD 'synapse';
17 CREATE DATABASE "matrix-synapse" WITH OWNER "matrix-synapse"
24 services.matrix-synapse = {
29 args.password = "synapse";
31 enable_registration = true;
32 enable_registration_without_verification = true;
34 federation_sender_instances = [ "federation_sender" ];
36 configureRedisLocally = true;
38 "federation_sender" = { };
47 homeserver.wait_for_unit("matrix-synapse.service");
48 homeserver.wait_for_unit("matrix-synapse-worker-federation_sender.service");