NixOS-Config/nixos/server/mastodon.nix

18 lines
545 B
Nix
Raw Normal View History

{pkgs, outputs, ...}: {
services.mastodon = {
2024-08-24 22:16:51 -04:00
enable = true;
localDomain = "social.${outputs.secrets.jimDomain}";
2024-08-24 22:16:51 -04:00
streamingProcesses = 4;
configureNginx = true;
smtp = {
createLocally = false;
host = "mx.${outputs.secrets.jimDomain}";
2024-08-24 22:16:51 -04:00
port = 587;
authenticate = true;
fromAddress = "Jimbo's Mastodon <noreply@${outputs.secrets.jimDomain}>";
user = "noreply@${outputs.secrets.jimDomain}";
passwordFile = pkgs.writeText "smtp_pass.txt" outputs.secrets.noreplyPassword;
2024-08-24 22:16:51 -04:00
};
};
}