summary refs log tree commit diff
path: root/host/Rory-nginx/services/matrix/conduit.nix
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-06-09 12:28:09 +0200
committerRory& <root@rory.gay>2024-07-04 14:45:02 +0200
commit5d8270ebfff8c1961ec476482bafbc9decc3c5f1 (patch)
treedc82f34a09a9075005fba392579ba839fde637c1 /host/Rory-nginx/services/matrix/conduit.nix
parentDesktop updates (diff)
downloadRory-Open-Architecture-5d8270ebfff8c1961ec476482bafbc9decc3c5f1.tar.xz
Bunch of changes
Diffstat (limited to 'host/Rory-nginx/services/matrix/conduit.nix')
-rwxr-xr-xhost/Rory-nginx/services/matrix/conduit.nix48
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";
+#      };
+#    };
 
 }