diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-09-07 22:24:25 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-09-07 22:24:25 +0200 |
commit | 7ca074751d85a40380bca01fbd2bbccfa87f224a (patch) | |
tree | a9227c2a364ecb53eb5c2d19d0159105d5c77f76 | |
parent | What the fuck systemd????????????????/ (diff) | |
download | Rory-Open-Architecture-7ca074751d85a40380bca01fbd2bbccfa87f224a.tar.xz |
enable service
-rwxr-xr-x | host/Rory-nginx/services/containers/pluralcontactbotpoc/services/conduit.nix | 31 |
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! } |