nixos-config/modules/system/services/server/social/mastodon/default.nix
2024-12-27 18:47:07 -05:00

19 lines
544 B
Nix

{ pkgs, config, ... }:
{
services.mastodon = {
enable = config.system.server.enable;
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;
};
};
}