NixOS modules for matrix related services
Go to file
Daniel Lovbrotte Olsen b6f0a026a7
Merge pull request #1 from dali99/flake-experiments
2022-12-22 00:04:31 +01:00
synapse-module nginx: make upstream generator check empty attrset rather than empty list 2022-12-19 21:04:15 +01:00
README.MD Create README.MD 2022-10-21 19:46:39 +02:00
flake.nix init flake 2022-06-05 03:59:53 +02: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