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

19 lines
541 B
Nix
Raw Normal View History

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