feat: matrix initial commit

This commit is contained in:
Benjamin Bädorf 2023-10-28 02:21:34 +02:00
parent 6cf680a2df
commit c5734ee308
No known key found for this signature in database
GPG key ID: 1B7BF5B77A521346
3 changed files with 51 additions and 5 deletions

View file

@ -1,10 +1,9 @@
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
imports = [
./hardware-configuration.nix
./matrix.nix
];
# Use GRUB2 as the boot loader.
# We don't use systemd-boot because Hetzner uses BIOS legacy boot.

View 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;
};
}

View file

@ -0,0 +1,12 @@
{ config, pkgs, ... }:
{
servies.mautrix-telegram = {
enable = true;
environmentFile = ""; # Secrets
settings = {
appservice = {
database = "psql:////run/postgresql";
};
};
};
};