{ config, lib, pkgs, ... }: with lib; let cfg = config.void.server.fedi.akkoma; inherit ((pkgs.formats.elixirConf { }).lib) mkRaw mkMap; in { options.void.server.fedi.akkoma = { enable = mkEnableOption false; }; # :( config = mkIf cfg.enable { security.acme.certs = { "fedi.sako.lol" = { credentialsFile = "/srv/secrets/porkbun"; dnsProvider = "porkbun"; webroot = null; }; "media.fedi.sako.lol" = { credentialsFile = "/srv/secrets/porkbun"; dnsProvider = "porkbun"; webroot = null; }; }; services = { akkoma = { enable = true; package = pkgs.akkoma; extraStatic = { "emoji/blobs.gg" = pkgs.akkoma-emoji.blobs_gg; # TODO Change this lmao "favicon.png" = pkgs.fetchurl { url = "https://sako.lol/icon.png"; hash = "sha256-G8qYTlRwQWn+x6b9t0gFBriIxm6LV2n1jI5OcTSg/jc="; }; "static/terms-of-service.html" = pkgs.writeText "terms-of-service.html" ''