added akkoma config

This commit is contained in:
twoneis 2025-02-23 03:17:13 +01:00
parent 010165d1e5
commit 34b351e6b4

View file

@ -1,6 +1,7 @@
{ lib, pkgs, config, ... }: let
inherit (lib) mkIf;
inherit (config) conf;
inherit ((pkgs.formats.elixirConf { }).lib) mkMap;
in mkIf conf.fedi.enable {
services.akkoma = {
enable = true;
@ -9,10 +10,15 @@ in mkIf conf.fedi.enable {
":instance" = {
name = "miras fedi";
description = "miras akkoma instance";
email = "mira.cp.0909@gmail.com";
email = "fedi@chpu.eu";
registration_open = false;
};
":mrf_simple" = {
reject = mkMap {
};
};
"Pleroma.Web.Endpoint" = {
url.host = "fedi.twoneis.site";
};
@ -23,6 +29,7 @@ in mkIf conf.fedi.enable {
};
};
nginx = {
serverName = "fedi.twoneis.site";
useACMEHost = "twoneis.site";
forceSSL = true;
};