rename matrix module

This commit is contained in:
Chris Kruining 2025-09-11 22:09:47 +02:00
parent 953c238a47
commit 992ddba373
Signed by: chris
SSH key fingerprint: SHA256:nG82MUfuVdRVyCKKWqhY+pCrbz9nbX6uzUns4RKa1Pg
2 changed files with 10 additions and 29 deletions

View file

@ -3,7 +3,7 @@ let
inherit (builtins) toString toJSON;
inherit (lib) mkIf mkEnableOption;
cfg = config.${namespace}.services.communication.conduit;
cfg = config.${namespace}.services.communication.matrix;
domain = "kruining.eu";
fqn = "matrix.${domain}";
@ -12,38 +12,19 @@ let
database = "synapse";
in
{
options.${namespace}.services.communication.conduit = {
enable = mkEnableOption "conduit (Matrix server)";
options.${namespace}.services.communication.matrix = {
enable = mkEnableOption "Matrix server (Synapse)";
};
config = mkIf cfg.enable {
# ${namespace}.services = {
# persistance.postgresql.enable = true;
${namespace}.services = {
persistance.postgresql.enable = true;
# virtualisation.podman.enable = true;
# };
};
networking.firewall.allowedTCPPorts = [ 4001 8448 ];
networking.firewall.allowedTCPPorts = [ 4001 ];
services = {
matrix-conduit = {
enable = false;
settings.global = {
address = "::";
port = port;
server_name = domain;
database_backend = "rocksdb";
# database_path = "/var/lib/matrix-conduit/";
allow_check_for_updates = false;
allow_registration = false;
enable_lightning_bolt = false;
};
};
matrix-synapse = {
enable = true;

View file

@ -10,7 +10,7 @@
authentication.authelia.enable = true;
authentication.zitadel.enable = true;
communication.conduit.enable = true;
communication.matrix.enable = true;
development.forgejo.enable = true;