Skip to content

Commit

Permalink
Merge pull request #1 from dali99/flake-experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
dali99 authored Dec 21, 2022
2 parents 8eb7f39 + f42306e commit b6f0a02
Show file tree
Hide file tree
Showing 4 changed files with 639 additions and 121 deletions.
34 changes: 34 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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
9 changes: 9 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
description = "NixOS modules for matrix related services";

outputs = { self }: {
nixosModules = {
synapse = import ./synapse-module;
};
};
}
Loading

0 comments on commit b6f0a02

Please sign in to comment.