23 lines
531 B
Nix
23 lines
531 B
Nix
{ config, ... }:
|
|
{
|
|
imports = [
|
|
./nginx
|
|
];
|
|
|
|
services.lemmy = {
|
|
enable = true;
|
|
nginx.enable = true;
|
|
database.createLocally = true;
|
|
settings = {
|
|
hostname = "lemmy.${config.domains.jim1}";
|
|
email = {
|
|
smtp_server = "mx.${config.domains.jim1}:587";
|
|
smtp_login = "noreply@${config.domains.jim1}";
|
|
smtp_from_address = "Jimbo's Lemmy <noreply@${config.domains.jim1}>";
|
|
smtp_password = config.secrets.noreplyPassword;
|
|
tls_type = "starttls";
|
|
};
|
|
};
|
|
};
|
|
}
|