From 8de69f0c2175b1a938a8293c15572e0f28ca3e59 Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Wed, 6 Nov 2024 14:38:21 +0100 Subject: [PATCH] nixos/solitary: Correctly specify MRF rules --- nixos/config/solitary/configuration.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/config/solitary/configuration.nix b/nixos/config/solitary/configuration.nix index 1a48b12..31e9211 100644 --- a/nixos/config/solitary/configuration.nix +++ b/nixos/config/solitary/configuration.nix @@ -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"; }; };