summary refs log tree commit diff
path: root/host/Rory-nginx
diff options
context:
space:
mode:
Diffstat (limited to 'host/Rory-nginx')
-rwxr-xr-xhost/Rory-nginx/configuration.nix10
-rwxr-xr-xhost/Rory-nginx/services/matrix/conduit.nix17
2 files changed, 7 insertions, 20 deletions
diff --git a/host/Rory-nginx/configuration.nix b/host/Rory-nginx/configuration.nix
index 995e5f2..df9936b 100755
--- a/host/Rory-nginx/configuration.nix
+++ b/host/Rory-nginx/configuration.nix
@@ -1,4 +1,4 @@
-{ config, pkgs, lib, conduit, conduit-vanilla, ... }:
+{ config, pkgs, lib, grapevine, conduit, ... }:
 
 {
   imports =
@@ -38,16 +38,18 @@
   };
 
   containers."pluralcontactbotpoc" = import ./services/containers/pluralcontactbotpoc/container.nix {
-    inherit pkgs lib conduit;
+    inherit pkgs lib;
+    conduit = grapevine;
   };
 
   containers."matrixunittests" = import ./services/containers/matrixunittests/container.nix {
-    inherit pkgs lib conduit;
+    inherit pkgs lib;
+    conduit = grapevine;
   };
 
   containers."matrixunittests-conduit" = import ./services/containers/matrixunittests-conduit/container.nix {
     inherit pkgs lib;
-    conduit = conduit-vanilla;
+    conduit = conduit;
   };
 
   system.stateVersion = "22.11"; # DO NOT EDIT!
diff --git a/host/Rory-nginx/services/matrix/conduit.nix b/host/Rory-nginx/services/matrix/conduit.nix
index e425cc4..eb830ab 100755
--- a/host/Rory-nginx/services/matrix/conduit.nix
+++ b/host/Rory-nginx/services/matrix/conduit.nix
@@ -1,4 +1,4 @@
-{ config, pkgs, lib, conduit, ... }:
+{ config, pkgs, lib, ... }:
 
 {
   services.grapevine = {
@@ -60,20 +60,5 @@
       #log = "debug";
     };
   };
-#  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";
-#      };
-#    };
-
 }