diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-09-07 01:53:44 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-09-07 01:53:44 +0200 |
commit | 595671a9ce9e18146e8370407e0e672a4b7ae03e (patch) | |
tree | b6ff803a785f21d6e1adccd03cb980f16064b540 | |
parent | Fix ip of bots.rory.gay (diff) | |
download | Rory-Open-Architecture-595671a9ce9e18146e8370407e0e672a4b7ae03e.tar.xz |
add pantalaimon
-rwxr-xr-x | host/Rory-nginx/services/containers/pluralcontactbotpoc/root.nix | 1 | ||||
-rwxr-xr-x | host/Rory-nginx/services/containers/pluralcontactbotpoc/services/pantalaimon.nix | 32 |
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! } |