summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xhost/Rory-nginx/services/containers/pluralcontactbotpoc/services/conduit.nix31
1 files changed, 16 insertions, 15 deletions
diff --git a/host/Rory-nginx/services/containers/pluralcontactbotpoc/services/conduit.nix b/host/Rory-nginx/services/containers/pluralcontactbotpoc/services/conduit.nix
index 5d77c89..e3919b8 100755
--- a/host/Rory-nginx/services/containers/pluralcontactbotpoc/services/conduit.nix
+++ b/host/Rory-nginx/services/containers/pluralcontactbotpoc/services/conduit.nix
@@ -16,23 +16,24 @@
   };
 
   systemd.services.matrix-conduit-reg-token = {
-      description = "Random registration token for Conduit.";
-      before = ["conduit.service"]; # So the registration can be used by Conduit.
+    enable = true;
+    description = "Random registration token for Conduit.";
+    before = ["conduit.service"]; # So the registration can be used by Conduit.
 
-      script = ''
-        reg_token=`cat /dev/urandom | tr -dc a-zA-Z0-9 | fold -c 256`
-        mkdir -p /run/systemd/system/conduit.service.d
-        echo $reg_token > /run/conduit-registration-token
-        echo Environment=\"CONDUIT_REGISTRATION_TOKEN=$reg_token\" > /run/systemd/system/conduit.service.d/override.conf
-        systemctl daemon-reload
-        systemctl try-restart conduit.service'';
-      serviceConfig = {
-        User = "root";
-        Group = "root";
-        IgnoreSIGPIPE = true;
-        Restart = "on-failure";
-      };
+    script = ''
+      reg_token=`cat /dev/urandom | tr -dc a-zA-Z0-9 | fold -c 256`
+      mkdir -p /run/systemd/system/conduit.service.d
+      echo $reg_token > /run/conduit-registration-token
+      echo Environment=\"CONDUIT_REGISTRATION_TOKEN=$reg_token\" > /run/systemd/system/conduit.service.d/override.conf
+      systemctl daemon-reload
+      systemctl try-restart conduit.service'';
+    serviceConfig = {
+      User = "root";
+      Group = "root";
+      IgnoreSIGPIPE = true;
+      Restart = "on-failure";
     };
+  };
 
   system.stateVersion = "22.11"; # DO NOT EDIT!
 }