NixOS modules for matrix related services
Go to file
Daniel Lovbrotte Olsen c158a35ea2 emergency handling of deprecations 2023-07-13 04:16:00 +02:00
synapse-module emergency handling of deprecations 2023-07-13 04:16:00 +02:00
COPYING Add a license 2023-02-17 01:16:02 +01:00
README.MD Create README.MD 2022-10-21 19:46:39 +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;

    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 one federation sender and one federation receiver