-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from dali99/flake-experiments
- Loading branch information
Showing
4 changed files
with
639 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
}; | ||
} |
Oops, something went wrong.