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

19 lines
521 B
Nix
Raw Permalink 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.domains.jim1}";
2024-08-24 22:16:51 -04:00
streamingProcesses = 4;
configureNginx = true;
smtp = {
createLocally = false;
host = "mx.${config.domains.jim1}";
2024-08-24 22:16:51 -04:00
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;
2024-08-24 22:16:51 -04:00
};
};
}