nixos/solitary: Correctly specify MRF rules
Some checks are pending
nix flake check / check (aarch64-linux) (push) Waiting to run
nix flake check / check (x86_64-linux) (push) Waiting to run

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

View file

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