nixos/solitary: Correctly specify MRF rules

This commit is contained in:
Mikael 2024-11-06 14:38:21 +01:00
parent 21b63f8844
commit 8de69f0c21
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -120,6 +120,7 @@ in {
services.akkoma.config = let
elixir = pkgs.formats.elixirConf { };
attrsToTuples = lib.mapAttrsToList (name: value: elixir.lib.mkTuple [ name value ]);
in with elixir.lib; {
":pleroma" = {
":instance" = {
@ -199,7 +200,7 @@ in {
];
":mrf_simple" = {
reject = mkMap {
reject = attrsToTuples {
"bae.st" = "harassment";
"brighteon.social" = "incompatible";
"detroitriotcity.com" = "incompatible";
@ -220,7 +221,7 @@ in {
"repl.co" = "security";
};
followers_only = mkMap {
followers_only = attrsToTuples {
"bitcoinhackers.org" = "annoying";
};
};