From 7ca074751d85a40380bca01fbd2bbccfa87f224a Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Thu, 7 Sep 2023 22:24:25 +0200 Subject: enable service --- .../pluralcontactbotpoc/services/conduit.nix | 31 +++++++++++----------- 1 file 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! } -- cgit 1.4.1