about summary refs log tree commit diff
path: root/nixos/cobalt/services/akkoma.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/cobalt/services/akkoma.nix')
-rw-r--r--nixos/cobalt/services/akkoma.nix57
1 files changed, 0 insertions, 57 deletions
diff --git a/nixos/cobalt/services/akkoma.nix b/nixos/cobalt/services/akkoma.nix
deleted file mode 100644
index c390e7d..0000000
--- a/nixos/cobalt/services/akkoma.nix
+++ /dev/null
@@ -1,57 +0,0 @@
-{ pkgs, lib, ... }:
-
-let
-  poorObfuscation = y: x: "${x}@${y}";
-  federation-blocklist = lib.importTOML ./akkoma-assets/blocklist.toml;
-
-  # ifd3f/infra
-  wrapFile = name: path:
-    (pkgs.runCommand name { inherit path; } ''
-      cp -r "$path" "$out"
-    '');
-in
-{
-  services.akkoma = {
-    enable = true;
-    initDb.enable = true;
-
-    extraStatic = {
-      "static/logo.svg" = wrapFile "logo.svg" ./akkoma-assets/logo.svg;
-      "static/logo.png" = wrapFile "logo.png" ./akkoma-assets/logo.png;
-    };
-    config = let inherit ((pkgs.formats.elixirConf { }).lib) mkRaw mkMap;
-    in {
-      ":pleroma"."Pleroma.Web.Endpoint".url.host = "social.sefidel.com";
-      ":pleroma".":media_proxy".enabled = false;
-      ":pleroma".":instance" = {
-        name = "Akkoma on sefidel";
-        description = "Private akkoma instance";
-        email = poorObfuscation "sefidel.com" "postmaster";
-        notify_email = poorObfuscation "sefidel.com" "postmaster";
-
-        registrations_open = false;
-        invites_enabled = true;
-
-        limit = 5000;
-      };
-      ":pleroma".":frontend_configurations" = {
-        pleroma_fe = mkMap {
-          logo = "/static/logo.png";
-        };
-      };
-      ":pleroma".":mrf" = {
-        policies = map mkRaw [ "Pleroma.Web.ActivityPub.MRF.SimplePolicy" ];
-      };
-      ":pleroma".":mrf_simple" = {
-        followers_only = mkMap federation-blocklist.followers_only;
-        media_nsfw = mkMap federation-blocklist.media_nsfw;
-        reject = mkMap federation-blocklist.reject;
-      };
-    };
-
-    nginx = {
-      forceSSL = true;
-      useACMEHost = "sefidel.com";
-    };
-  };
-}