mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2024-11-23 11:38:06 +01:00
53 lines
2 KiB
Nix
53 lines
2 KiB
Nix
|
{ pkgs, lib, config, ... }:
|
||
|
let
|
||
|
inherit ((pkgs.formats.elixirConf {}).lib) mkMap mkAtom mkRaw mkTuple;
|
||
|
in
|
||
|
{
|
||
|
services.akkoma = {
|
||
|
enable = true;
|
||
|
initSecrets = false;
|
||
|
patches.configurableFromDatabase = true;
|
||
|
# frontends.mastodon = {
|
||
|
# package = ;
|
||
|
# name = "mastodon-fe";
|
||
|
# ref = "stable";
|
||
|
# };
|
||
|
extraPackages = with pkgs; [ zip unzip exiftool ffmpeg_5-headless graphicsmagick-imagemagick-compat ];
|
||
|
config = {
|
||
|
":pleroma".":instance" = {
|
||
|
name = "My Akkoma instance";
|
||
|
description = "Akkoma instance description";
|
||
|
email = "user@localhost";
|
||
|
registrations_open = false;
|
||
|
federating = false;
|
||
|
upload_dir = "/data/akkoma/uploads";
|
||
|
static_dir = "/data/akkoma/static";
|
||
|
};
|
||
|
":pleroma"."Pleroma.Web.Endpoint" = {
|
||
|
url.host = config.myAkkomaContainerOptions.domain;
|
||
|
http.ip = config.myAkkomaContainerOptions.localAddress;
|
||
|
http.port = config.myAkkomaContainerOptions.localPort;
|
||
|
};
|
||
|
|
||
|
":pleroma"."Pleroma.Uploaders.Local".uploads = "/data/akkoma/uploads";
|
||
|
|
||
|
":pleroma".":mrf".policies = map mkRaw [
|
||
|
"Pleroma.Web.ActivityPub.MRF.ObjectAgePolicy"
|
||
|
"Pleroma.Web.ActivityPub.MRF.TagPolicy"
|
||
|
"Pleroma.Web.ActivityPub.MRF.SimplePolicy"
|
||
|
];
|
||
|
":pleroma".":mrf_simple".accept = [
|
||
|
(mkTuple ["good.instance" "good!"])
|
||
|
];
|
||
|
|
||
|
|
||
|
":pleroma"."Pleroma.Web.Endpoint".secret_key_base = { _secret = "/run/secrets/akkotest-vps/key-base"; };
|
||
|
":pleroma"."Pleroma.Web.Endpoint".signing_salt = { _secret = "/run/secrets/akkotest-vps/signing-salt"; };
|
||
|
":pleroma"."Pleroma.Web.Endpoint".live_view.signing_salt = { _secret = "/run/secrets/akkotest-vps/liveview-salt"; };
|
||
|
":web_push_encryption".":vapid_details".private_key = { _secret = "/run/secrets/akkotest-vps/vapid-private"; };
|
||
|
":web_push_encryption".":vapid_details".public_key = { _secret = "/run/secrets/akkotest-vps/vapid-public"; };
|
||
|
":joken".":default_signer" = { _secret = "/run/secrets/akkotest-vps/jwt-signer"; };
|
||
|
|
||
|
};
|
||
|
};
|
||
|
}
|