added missing postgres

This commit is contained in:
Harry 2024-07-19 13:59:34 +02:00
parent f50175491e
commit f44838ffc9

View file

@ -1,11 +1,26 @@
{ config, lib, ... }:
#TODO: implement
{
pkgs,
config,
lib,
...
}:
#TODO: implement
let
baseUrl = "talk.hypervirtual.world";
in
{
sops.secrets.matrix-shared-secret = {
sopsFile = ../secrets/matrix.yaml;
format = "yaml";
};
services.matrix-synapse = {
enable = true;
settings = {
serverName = "talk.hypervirtual.world";
serverName = baseUrl;
public_baseurl = baseUrl;
enable_registration = false;
};
@ -17,5 +32,31 @@
"url-preview"
"user-search"
];
extraConfigFiles = [ "/run/secrets/matrix-shared-secret" ];
listeners = [
{
port = 8008;
bind_addresses = [ "::1" ];
type = "http";
tls = false;
x_forwarded = true;
resources = [
{
names = [
"client"
"federation"
];
compress = true;
}
];
}
];
};
services.postgres = {
enable = true;
package = pkgs.postgresql_15;
};
}