nixos-config/modules/system/services/server/social/mastodon/default.nix

19 lines
536 B
Nix
Raw Normal View History

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