Compare commits
3 commits
2a3d66d892
...
e4aee7e463
Author | SHA1 | Date | |
---|---|---|---|
|
e4aee7e463 | ||
|
c8e32e63cb | ||
|
3c7e1f106b |
configuration/services/conduit
|
@ -46,7 +46,7 @@ in
|
|||
inherit (registration) ExecStartPre;
|
||||
ExecStart = lib.concatStringsSep " " [
|
||||
"${lib.getExe pkgs.heisenbridge}"
|
||||
"--config ${registration.runtimeRegistration}"
|
||||
"--config \${RUNTIME_DIRECTORY}/heisenbridge-registration.yaml"
|
||||
"--owner @tlater:matrix.tlater.net"
|
||||
"http://localhost:${toString conduitCfg.settings.global.port}"
|
||||
];
|
||||
|
|
|
@ -16,6 +16,9 @@ in
|
|||
#
|
||||
# This registration file needs to be manually added to conduit by
|
||||
# messaging the admin with the yaml file.
|
||||
#
|
||||
# TODO(tlater): Conduwuit seems to support a CLI interface for this,
|
||||
# may want to migrate to that sometime.
|
||||
writeRegistrationScript =
|
||||
{
|
||||
id, # Must be unique among all registered appservices/bots
|
||||
|
|
|
@ -37,7 +37,7 @@ let
|
|||
"org.matrix.msc3202" = true;
|
||||
};
|
||||
|
||||
runtimeRegistration = "/var/lib/matrix-hookshot/registration.yaml";
|
||||
runtimeRegistration = "${cfg.registrationFile}";
|
||||
};
|
||||
in
|
||||
{
|
||||
|
@ -49,7 +49,7 @@ in
|
|||
inherit (registration) ExecStartPre;
|
||||
|
||||
# Some library in matrix-hookshot wants a home directory
|
||||
Environment = [ "HOME=/var/lib/matrix-hookshot" ];
|
||||
Environment = [ "HOME=/run/matrix-hookshot" ];
|
||||
|
||||
DynamicUser = true;
|
||||
StateDirectory = "matrix-hookshot";
|
||||
|
@ -80,7 +80,7 @@ in
|
|||
"conduit.service"
|
||||
];
|
||||
|
||||
registrationFile = "/var/lib/matrix-hookshot/registration.yaml";
|
||||
registrationFile = "/run/matrix-hookshot/registration.yaml";
|
||||
|
||||
settings = {
|
||||
bridge = {
|
||||
|
|
Loading…
Reference in a new issue