Add path from the nix store to service configuration during build

#1

Hi,
I tried to do a service module for mautrix-whatsapp which is a bridge between Matrix and WhatsApp but the binary of mautrix-whatsapp generate a file called registration.yaml that I must reference in the matrix-synapse service.
I don’t know how to do this for my service.

Is someone can help me ?

Regards

0 Likes

#2

Assuming you’re refering to the registration.yaml file generated by mautrix-whatsapp:

I’d consider this file state of the mautrix-whatsapp service, so it would live in /var/lib/mautrix-whatsapp/registration.yaml.

synapse already provides a way to configure app_service_config_files, so your mautrix-whatsapp module would only need to set services.matrix-synapse.app_service_config_files = ["/var/lib/mautrix-whatsapp/registration.yaml"];

0 Likes

#3

Ok but someone who don’t know how it works, is not aware of adding this to the configuration … I should add it on the documentation ?

0 Likes