NixOS-Config/modules/system/services/server/social/lemmy/default.nix

23 lines
551 B
Nix

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