19 lines
521 B
Nix
19 lines
521 B
Nix
{ pkgs, config, ... }:
|
|
{
|
|
services.mastodon = {
|
|
enable = true;
|
|
localDomain = "social.${config.domains.jim1}";
|
|
streamingProcesses = 4;
|
|
configureNginx = true;
|
|
smtp = {
|
|
createLocally = false;
|
|
host = "mx.${config.domains.jim1}";
|
|
port = 587;
|
|
authenticate = true;
|
|
fromAddress = "Jimbo's Mastodon <noreply@${config.domains.jim1}>";
|
|
user = "noreply@${config.domains.jim1}";
|
|
passwordFile = pkgs.writeText "smtp_pass.txt" config.secrets.noreplyPassword;
|
|
};
|
|
};
|
|
}
|