started refactoring

This commit is contained in:
kity 2024-12-23 14:39:18 +01:00
parent 729050b005
commit f61d2eedef
36 changed files with 12 additions and 10 deletions

View file

@ -0,0 +1,92 @@
{
pkgs,
config,
lib,
...
}:
let
baseUrl = "https://talk.hypervirtual.world";
in
{
networking.domain = "hypervirtual.world";
sops.secrets.matrix_data = {
format = "yaml";
owner = "matrix-synapse";
};
services.matrix-synapse = {
enable = true;
settings = {
server_name = "hypervirtual.world";
public_baseurl = baseUrl;
enable_registration = false;
enable_metrics = true;
listeners = [
{
port = 8008;
bind_addresses = [
"::1"
"0.0.0.0"
];
type = "http";
tls = false;
x_forwarded = true;
resources = [
{
names = [
"client"
"federation"
];
compress = true;
}
];
}
{
port = 9000;
type = "metrics";
tls = false;
bind_addresses = [
"::1"
"127.0.0.1"
];
resources = [ ];
}
];
};
extras = [
"systemd"
"postgres"
"url-preview"
"user-search"
];
extraConfigFiles = [ "/run/secrets/matrix_data" ];
};
/*
services.mautrix-discord = {
enable = true;
environmentFile = "";
settings = {
homeserver = {
address = "http://localhost:8008";
domain = "hypervirtual.world";
};
appservice = {
provisioning.enabled = false;
id = "discord";
public = {
};
database = "";
};
};
};
*/
}