forked from mirrors/nixpkgs
ed5403efc3
This is the first version of the mautrix-facebook module. Due to lack of secret support on NixOS as well as the requirement of a homeserver domain it requires some setup. For completeness here is my working config using NixOps secrets: ```nix deployment.keys."mautrix-facebook-config.env" = { text = '' MAUTRIX_FACEBOOK_APPSERVICE_AS_TOKEN=${secrets.as_token} MAUTRIX_FACEBOOK_APPSERVICE_HS_TOKEN=${secrets.hs_token} ''; destDir = "/var/keys"; }; deployment.keys."mautrix-facebook-registration.yaml" = { text = builtins.toJSON config.services.mautrix-facebook.registrationData; destDir = "/var/keys"; user = "matrix-synapse"; }; users.users.matrix-synapse.extraGroups = ["keys"]; systemd.services.matrix-synapse.after = ["keys.service"]; systemd.services.matrix-synapse.wants = ["keys.service"]; services.mautrix-facebook = { enable = true; settings = { homeserver.domain = "bots.kevincox.ca"; bridge = { displayname_template = "{displayname}"; permissions = { "@kevincox:matrix.org" = "admin"; }; }; }; environmentFile = "/var/keys/mautrix-facebook-config.env"; registrationData = { as_token = secrets.as_token; hs_token = secrets.hs_token; }; }; systemd.services.mautrix-facebook = rec { wants = ["keys.target"]; after = wants; }; services.matrix-synapse.app_service_config_files = [ "/var/keys/mautrix-facebook-registration.yaml" ]; ``` |
||
---|---|---|
.. | ||
admin | ||
amqp | ||
audio | ||
backup | ||
blockchain/ethereum | ||
cluster | ||
computing | ||
continuous-integration | ||
databases | ||
desktops | ||
development | ||
display-managers | ||
editors | ||
games | ||
hardware | ||
logging | ||
misc | ||
monitoring | ||
network-filesystems | ||
networking | ||
printing | ||
scheduling | ||
search | ||
security | ||
system | ||
torrent | ||
ttys | ||
video | ||
wayland | ||
web-apps | ||
web-servers | ||
x11 |