NixOS-Config/system/server/lemmy.nix

26 lines
710 B
Nix
Raw Normal View History

{outputs, ...}: {
services = {
2024-08-26 13:11:54 -04:00
lemmy = {
enable = true;
nginx.enable = true;
database.createLocally = true;
settings = {
hostname = "lemmy.${outputs.secrets.jimDomain}";
email = {
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;
tls_type = "starttls";
};
2024-08-24 22:16:51 -04:00
};
};
# Add SSL to webpage
nginx.virtualHosts."lemmy.${outputs.secrets.jimDomain}" = {
enableACME = true;
forceSSL = true;
};
2024-08-24 22:16:51 -04:00
};
}