nixos/solitary: Correctly specify MRF rules
This commit is contained in:
parent
21b63f8844
commit
8de69f0c21
1 changed files with 3 additions and 2 deletions
|
@ -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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue