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

19 lines
547 B
Nix
Raw Normal View History

2024-10-09 03:36:08 -04:00
{ 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
};
};
}