2024-08-26 13:07:59 -04:00
|
|
|
let
|
|
|
|
secrets = import ../modules/secrets.nix;
|
|
|
|
in {
|
|
|
|
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 = {
|
|
|
|
hostname = "lemmy.${secrets.jimDomain}";
|
|
|
|
email = {
|
|
|
|
smtp_server = "mx.${secrets.jimDomain}:587";
|
|
|
|
smtp_login = "noreply@${secrets.jimDomain}";
|
|
|
|
smtp_from_address = "Jimbo's Lemmy <noreply@${secrets.jimDomain}>";
|
|
|
|
smtp_password = secrets.noreplyPassword;
|
|
|
|
tls_type = "starttls";
|
|
|
|
};
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
};
|
2024-08-26 13:07:59 -04:00
|
|
|
|
|
|
|
# Add SSL to webpage
|
|
|
|
nginx.virtualHosts."lemmy.${secrets.jimDomain}" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
};
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
}
|