janeway: add/fix synapse

This commit is contained in:
Felix Albrigtsen 2023-10-15 03:50:59 +02:00
parent 265a13625d
commit e799574ecb
2 changed files with 1 additions and 9 deletions

View File

@ -1,7 +1,4 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
let
main_ip = "127.0.1.2";
in
{ {
sops.secrets."matrix/synapse/registrationsecret" = { sops.secrets."matrix/synapse/registrationsecret" = {
restartUnits = [ "matrix-synapse.service" ]; restartUnits = [ "matrix-synapse.service" ];

View File

@ -2,12 +2,7 @@
{ {
services.postgresql = { services.postgresql = {
enable = true; enable = true;
enableTCPIP = true; # Expose on the network enableTCPIP = false;
authentication = pkgs.lib.mkOverride 10 ''
local all all trust
host all all 127.0.0.1/32 trust
host all all ::1/128 trust
'';
}; };
services.postgresqlBackup = { services.postgresqlBackup = {