NixOS-Config/nixos/server/mastodon.nix

20 lines
549 B
Nix
Raw Normal View History

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