mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-08 22:50:19 +02:00
added missing postgres
This commit is contained in:
parent
f50175491e
commit
f44838ffc9
1 changed files with 44 additions and 3 deletions
|
@ -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 = {
|
services.matrix-synapse = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
serverName = "talk.hypervirtual.world";
|
serverName = baseUrl;
|
||||||
|
public_baseurl = baseUrl;
|
||||||
enable_registration = false;
|
enable_registration = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -17,5 +32,31 @@
|
||||||
"url-preview"
|
"url-preview"
|
||||||
"user-search"
|
"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…
Add table
Add a link
Reference in a new issue