2024-10-15 17:46:44 -04:00
|
|
|
{ pkgs, config, ... }:
|
2024-10-09 03:36:08 -04:00
|
|
|
{
|
2024-09-09 17:07:24 -04:00
|
|
|
services.pixelfed = {
|
|
|
|
enable = true;
|
2024-10-24 23:42:09 -04:00
|
|
|
domain = "pics.${config.domains.jim1}";
|
2024-10-15 17:46:44 -04:00
|
|
|
secretFile = pkgs.writeText "appkey" config.secrets.pixelfedKey;
|
2024-09-11 15:57:29 -04:00
|
|
|
settings = {
|
2024-09-11 21:58:40 -04:00
|
|
|
APP_NAME = ''"Jimbo's Pixelfed"'';
|
2024-09-11 15:57:29 -04:00
|
|
|
INSTANCE_DESCRIPTION = ''"The Jimbosfiles Pixelfed Instance"'';
|
2024-10-28 05:04:42 -04:00
|
|
|
INSTANCE_CONTACT_EMAIL = "jimbo@${config.domains.jim2}";
|
2024-09-11 15:57:29 -04:00
|
|
|
OPEN_REGISTRATION = true;
|
|
|
|
APP_LOCALE = "en";
|
2024-10-28 05:04:42 -04:00
|
|
|
INSTANCE_DISCOVER_PUBLIC = true;
|
2024-09-11 15:57:29 -04:00
|
|
|
STORIES_ENABLED = true;
|
|
|
|
|
|
|
|
# Mail config
|
|
|
|
ENFORCE_EMAIL_VERIFICATION = true;
|
2024-10-24 23:42:09 -04:00
|
|
|
MAIL_FROM_ADDRESS = "noreply@${config.domains.jim1}";
|
|
|
|
MAIL_FROM_NAME = ''"Jimbo's Pixelfed <noreply@${config.domains.jim1}>"'';
|
2024-09-11 15:57:29 -04:00
|
|
|
MAIL_ENCRYPTION = "tls";
|
|
|
|
MAIL_DRIVER = "smtp";
|
2024-10-24 23:42:09 -04:00
|
|
|
MAIL_HOST = "mx.${config.domains.jim1}";
|
2024-09-11 15:57:29 -04:00
|
|
|
MAIL_PORT = 587;
|
2024-10-24 23:42:09 -04:00
|
|
|
MAIL_USERNAME = "noreply@${config.domains.jim1}";
|
2024-10-29 01:44:42 -04:00
|
|
|
MAIL_PASSWORD = config.secrets.noreplyPassword;
|
2024-09-11 15:57:29 -04:00
|
|
|
};
|
|
|
|
nginx = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
};
|
2024-09-09 17:07:24 -04:00
|
|
|
};
|
|
|
|
}
|