diff options
Diffstat (limited to 'host/Rory-nginx/services/matrix/conduit.nix')
-rwxr-xr-x | host/Rory-nginx/services/matrix/conduit.nix | 48 |
1 files changed, 29 insertions, 19 deletions
diff --git a/host/Rory-nginx/services/matrix/conduit.nix b/host/Rory-nginx/services/matrix/conduit.nix index 463c936..e425cc4 100755 --- a/host/Rory-nginx/services/matrix/conduit.nix +++ b/host/Rory-nginx/services/matrix/conduit.nix @@ -1,13 +1,22 @@ { config, pkgs, lib, conduit, ... }: { - services.matrix-conduit = { - package = conduit.packages.${pkgs.system}.default; + services.grapevine = { + #package = conduit.packages.${pkgs.system}.default; enable = true; - settings.global = { - address = "127.0.0.1"; + settings = { + conduit_compat = true; +# address = "127.0.0.1"; server_name = "conduit.rory.gay"; + listen = [ + { + type = "tcp"; + address = "127.0.0.1"; + port = 6167; + } + ]; + database_backend = "rocksdb"; # rocksdb_optimize_for_spinning_disks = false; # rocksdb_max_log_file_size = 33554432; @@ -46,24 +55,25 @@ allow_check_for_updates = false; allow_registration = false; -# log = "info,state_res=info"; + #log = "info"; + #log_format = "full"; #log = "debug"; }; }; - systemd.services.matrix-conduit-reg-token = { - description = "Random registration token for Conduit."; - before = ["conduit.service"]; # So the registration can be used by Conduit. - after = ["matrix-synapse-reg-token.service"]; - - script = '' - mkdir -p /run/systemd/system/conduit.service.d - echo Environment=\"CONDUIT_REGISTRATION_TOKEN=$(cat /var/lib/matrix-synapse/registration_shared_secret.txt)\" > /run/systemd/system/conduit.service.d/override.conf - systemctl daemon-reload''; - serviceConfig = { - User = "root"; - Group = "root"; - }; - }; +# systemd.services.matrix-conduit-reg-token = { +# description = "Random registration token for Conduit."; +# before = ["grapevine.service"]; # So the registration can be used by Conduit. +# after = ["matrix-synapse-reg-token.service"]; +# +# script = '' +# mkdir -p /run/systemd/system/conduit.service.d +# echo Environment=\"CONDUIT_REGISTRATION_TOKEN=$(cat /var/lib/matrix-synapse/registration_shared_secret.txt)\" > /run/systemd/system/grapevine.service.d/override.conf +# systemctl daemon-reload''; +# serviceConfig = { +# User = "root"; +# Group = "root"; +# }; +# }; } |