rename matrix module
This commit is contained in:
parent
953c238a47
commit
992ddba373
2 changed files with 10 additions and 29 deletions
|
|
@ -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;
|
||||
# virtualisation.podman.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;
|
||||
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
authentication.authelia.enable = true;
|
||||
authentication.zitadel.enable = true;
|
||||
|
||||
communication.conduit.enable = true;
|
||||
communication.matrix.enable = true;
|
||||
|
||||
development.forgejo.enable = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue