NixOS modules for matrix related services
Go to file
Daniel Lovbrotte Olsen f5c6d3f72c disable the wait-for-script temporarily
https://github.com/NixOS/nixpkgs/pull/241973/files#diff-ad0db3f4b3d5cdddf08d7a7d16c7fc1502c54b9ce56b09077879a4c157cd6374R1065
2023-09-12 21:38:35 +02:00
synapse-module disable the wait-for-script temporarily 2023-09-12 21:38:35 +02:00
COPYING Add a license 2023-02-17 01:16:02 +01:00
README.MD Update README.MD 2023-09-11 00:04:19 +02:00
flake.lock introduce matrix-lib 2023-01-20 08:11:33 +01:00
flake.nix load matrix-lib directly inside module 2023-02-17 23:44:47 +01:00
lib.nix introduce matrix-lib 2023-01-20 08:11:33 +01:00

README.MD

With matrix.YOURDOMAIN pointing at the server:

{
  imports = [ ./synapse-module ];

  services.matrix-synapse-next = {
    enable = true;

    workers.federationSenders = 1;
    workers.federationReceivers = 1;
    workers.initialSyncers = 1;
    workers.normalSyncers = 1;
    workers.eventPersisters = 2;
    workers.useUserDirectoryWorker = true;

    enableNginx = true;

    settings = {
      server_name = "YOURDOMAIN";
      
      database = {
        name = "psycopg2";
        args = {
          host = "localhost";
          user = "synapse";
          password = "synapse";
          dbname = "synapse";
        };
      };
    };
  };
  
  services.redis.servers."".enable = true;
}

is ~enough to get a functional matrix-server running with some workers