summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xhost/Rory-nginx/services/containers/pluralcontactbotpoc/root.nix1
-rwxr-xr-xhost/Rory-nginx/services/containers/pluralcontactbotpoc/services/pantalaimon.nix32
2 files changed, 9 insertions, 24 deletions
diff --git a/host/Rory-nginx/services/containers/pluralcontactbotpoc/root.nix b/host/Rory-nginx/services/containers/pluralcontactbotpoc/root.nix
index 2c0d901..3e504a4 100755
--- a/host/Rory-nginx/services/containers/pluralcontactbotpoc/root.nix
+++ b/host/Rory-nginx/services/containers/pluralcontactbotpoc/root.nix
@@ -5,6 +5,7 @@
     [
       ./services/nginx.nix
       ./services/conduit.nix
+      ./services/pantalaimon.nix
     ];
 
   system.stateVersion = "22.11"; # DO NOT EDIT!
diff --git a/host/Rory-nginx/services/containers/pluralcontactbotpoc/services/pantalaimon.nix b/host/Rory-nginx/services/containers/pluralcontactbotpoc/services/pantalaimon.nix
index f2fdad6..61c89c4 100755
--- a/host/Rory-nginx/services/containers/pluralcontactbotpoc/services/pantalaimon.nix
+++ b/host/Rory-nginx/services/containers/pluralcontactbotpoc/services/pantalaimon.nix
@@ -1,33 +1,17 @@
 { config, pkgs, lib, conduit, ... }:
 
 {
-  services.matrix-conduit = {
-    package = conduit.packages.${pkgs.system}.default;
+  services.pantalaimon-headless = {
     enable = true;
-    settings.global = {
-      address = "127.0.0.1";
-      server_name = "pcpoc.rory.gay";
-      database_backend = "rocksdb";
-      enable_lightning_bolt = true;
-      max_concurrent_requests = 1000;
-      allow_check_for_updates = false;
-      allow_registration = false;
-    };
-  };
-  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";
+    instances."localhost" = {
+      homeserver = "http://localhost:6167";
+      ssl = false;
+      extraSettings = {
+        "DropOldKeys" = true;
+        "UseKeyring" = false;
       };
     };
+  }
   system.stateVersion = "22.11"; # DO NOT EDIT!
 }