2023-11-24 21:44:59 +01:00
|
|
|
{
|
2023-11-25 13:32:32 +01:00
|
|
|
inputs,
|
|
|
|
outputs,
|
|
|
|
lib,
|
2023-11-24 21:44:59 +01:00
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
users.groups.akkoma = {};
|
|
|
|
|
|
|
|
users.users = {
|
|
|
|
akkoma = {
|
|
|
|
isSystemUser = true;
|
|
|
|
group = "akkoma";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.akkoma = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.akkoma;
|
|
|
|
extraPackages = with pkgs; [ffmpeg exiftool imagemagick];
|
|
|
|
nginx = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
serverName = "akkoma.gladtherescake.eu";
|
|
|
|
};
|
2023-11-25 16:44:55 +01:00
|
|
|
dist.cookie._secret = config.sops.secrets."releaseCookie".path;
|
|
|
|
|
2023-11-25 13:53:13 +01:00
|
|
|
config = {
|
2023-11-25 15:27:35 +01:00
|
|
|
":pleroma".":admin_token" = "uknJWzFoYtEyZXXsCCtAMYzojXMQoHas";
|
2023-11-25 13:53:13 +01:00
|
|
|
":pleroma".":instance" = {
|
|
|
|
name = "GLaDTheresCake Akkoma";
|
|
|
|
email = "akkoma@gladtherescake.eu";
|
|
|
|
notify_email = "no-reply@akkoma.gladtherescake.eu";
|
2023-11-25 14:49:56 +01:00
|
|
|
emails.mailer = {
|
|
|
|
enabled = true;
|
|
|
|
adapter = "Swoosh.Adapters.Sendmail";
|
|
|
|
cmd_path = "/run/wrappers/bin/sendmail";
|
|
|
|
cmd_args = "-N delay,failure,success";
|
|
|
|
qmail = true;
|
|
|
|
};
|
2023-11-25 13:55:44 +01:00
|
|
|
description = "Lillian's Akkoma server!";
|
2023-11-25 13:53:13 +01:00
|
|
|
languages = ["en" "nl"];
|
2023-11-25 15:01:28 +01:00
|
|
|
registrations_open = true;
|
2023-11-25 13:53:13 +01:00
|
|
|
max_pinned_statuses = 10;
|
|
|
|
cleanup_attachments = true;
|
|
|
|
};
|
|
|
|
};
|
2023-11-24 21:44:59 +01:00
|
|
|
};
|
|
|
|
}
|