2024-09-11 15:57:29 -04:00
|
|
|
{pkgs, outputs, ...}: {
|
2024-09-09 17:07:24 -04:00
|
|
|
services.pixelfed = {
|
|
|
|
enable = true;
|
2024-09-11 15:57:29 -04:00
|
|
|
domain = "pics.${outputs.secrets.jimDomain}";
|
|
|
|
secretFile = pkgs.writeText "appkey" outputs.secrets.pixelfedKey;
|
|
|
|
settings = {
|
|
|
|
APP_NAME = "Jimbofed";
|
|
|
|
INSTANCE_DESCRIPTION = ''"The Jimbosfiles Pixelfed Instance"'';
|
|
|
|
INSTANCE_CONTACT_EMAIL = "jimbo@${outputs.secrets.jimDomain}";
|
|
|
|
OPEN_REGISTRATION = true;
|
|
|
|
APP_LOCALE = "en";
|
|
|
|
INSTANCE_DISCOVER_PUBLIC = false;
|
|
|
|
STORIES_ENABLED = true;
|
|
|
|
|
|
|
|
# Mail config
|
|
|
|
ENFORCE_EMAIL_VERIFICATION = true;
|
|
|
|
MAIL_FROM_ADDRESS = "noreply@${outputs.secrets.jimDomain}";
|
|
|
|
MAIL_FROM_NAME = ''"Jimbo's Pixelfed <noreply@${outputs.secrets.jimDomain}>"'';
|
|
|
|
MAIL_ENCRYPTION = "tls";
|
|
|
|
MAIL_DRIVER = "smtp";
|
|
|
|
MAIL_HOST = "mx.${outputs.secrets.jimDomain}";
|
|
|
|
MAIL_PORT = 587;
|
|
|
|
MAIL_USERNAME = "noreply@${outputs.secrets.jimDomain}";
|
|
|
|
MAIL_PASSWORD = "${outputs.secrets.noreplyPassword}";
|
|
|
|
};
|
|
|
|
nginx = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
};
|
2024-09-09 17:07:24 -04:00
|
|
|
};
|
|
|
|
}
|