mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-01-18 13:29:32 +01:00
added missing postgres
This commit is contained in:
parent
f50175491e
commit
f44838ffc9
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue