In this chapter there is a proposed skeleton for :mrf_simple configuration, but it ignored by akkoma as is.
Akkoma expects a list of tuples, while the proposed config uses an Elixir map.
Can confirm that the documentation's way of doing it doesn't work, and the map mkTuple does, glad I found this, I was so confused why I couldn't get MRF working :)
Problem
https://nixos.org/manual/nixos/unstable/#modules-services-akkoma-federation-policies
In this chapter there is a proposed skeleton for :mrf_simple configuration, but it ignored by akkoma as is. Akkoma expects a list of tuples, while the proposed config uses an Elixir map.
There is also a typo in https://nixos.org/manual/nixos/unstable/#modules-services-akkoma-service-configuration where
registration_open = false
should be replaced byregistrations_open = false
(should I open a separate issue?).Proposal
Replace
mkMap { ... }
withmap mkTuple [ ... ]
. For instance to reject all messages from example.com because of spam, do this:instead of
Using the configuration as proposed above, akkoma corretly loads the configuration and it is visible in nodeinfo.
Also, again, replace
registration_open = false
withregistrations_open = false
.Checklist
Add a :+1: reaction to issues you find important.