{ 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 = { "social.sako.lol" = { credentialsFile = "/srv/secrets/porkbun"; dnsProvider = "porkbun"; webroot = null; }; "media.social.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; "static/terms-of-service.html" = pkgs.writeText "terms-of-service.html" ''