2024-08-30 01:17:50 -04:00
|
|
|
{outputs, ...}: {
|
2024-08-26 13:07:59 -04:00
|
|
|
services = {
|
2024-08-26 13:11:54 -04:00
|
|
|
lemmy = {
|
2024-08-26 13:07:59 -04:00
|
|
|
enable = true;
|
|
|
|
nginx.enable = true;
|
|
|
|
database.createLocally = true;
|
|
|
|
settings = {
|
2024-08-30 01:17:50 -04:00
|
|
|
hostname = "lemmy.${outputs.secrets.jimDomain}";
|
2024-08-26 13:07:59 -04:00
|
|
|
email = {
|
2024-08-30 01:17:50 -04:00
|
|
|
smtp_server = "mx.${outputs.secrets.jimDomain}:587";
|
|
|
|
smtp_login = "noreply@${outputs.secrets.jimDomain}";
|
|
|
|
smtp_from_address = "Jimbo's Lemmy <noreply@${outputs.secrets.jimDomain}>";
|
|
|
|
smtp_password = outputs.secrets.noreplyPassword;
|
2024-08-26 13:07:59 -04:00
|
|
|
tls_type = "starttls";
|
|
|
|
};
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
};
|
2024-08-26 13:07:59 -04:00
|
|
|
|
|
|
|
# Add SSL to webpage
|
2024-08-30 01:17:50 -04:00
|
|
|
nginx.virtualHosts."lemmy.${outputs.secrets.jimDomain}" = {
|
2024-08-26 13:07:59 -04:00
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
};
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
}
|