feat: matrix initial commit
This commit is contained in:
parent
02e570c85a
commit
060908a42b
35
hosts/nachtigall/apps/matrix.nix
Normal file
35
hosts/nachtigall/apps/matrix.nix
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
|
||||||
|
services.caddy = {
|
||||||
|
};
|
||||||
|
|
||||||
|
services.matrix-synapse = {
|
||||||
|
settings = {
|
||||||
|
server_name = "pub.solar";
|
||||||
|
public_baseurl = "https://matrix.pub.solar/";
|
||||||
|
database = {
|
||||||
|
name = "psycopg2";
|
||||||
|
args.host = "/run/postgresql";
|
||||||
|
args.user = "";
|
||||||
|
args.database = "";
|
||||||
|
};
|
||||||
|
|
||||||
|
app_service_config_files = [
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
extraConfigFiles = [
|
||||||
|
# registration_shared_secret
|
||||||
|
# mailer
|
||||||
|
];
|
||||||
|
|
||||||
|
plugins = [
|
||||||
|
pkgs.matrix-synapse-plugins.matrix-synapse-shared-secret-auth
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.postgresql = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
12
hosts/nachtigall/apps/mautrix-telegram.nix
Normal file
12
hosts/nachtigall/apps/mautrix-telegram.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
servies.mautrix-telegram = {
|
||||||
|
enable = true;
|
||||||
|
environmentFile = ""; # Secrets
|
||||||
|
settings = {
|
||||||
|
appservice = {
|
||||||
|
database = "psql:////run/postgresql";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
|
@ -5,5 +5,6 @@
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
|
./matrix.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue