Add back Mastodon

This commit is contained in:
Bun 2025-04-02 06:13:41 -04:00
parent 7577113cf9
commit bba4e01a2b
4 changed files with 23 additions and 1 deletions

View file

@ -0,0 +1,20 @@
{ config, lib, pkgs, ... }:
{
config = lib.mkIf config.services.mastodon.enable {
services.mastodon = {
localDomain = "social.nixfox.ca";
streamingProcesses = 4;
configureNginx = true;
smtp = {
createLocally = false;
host = "mx.nixfox.ca";
port = 587;
authenticate = true;
fromAddress = "NixFox Mastodon <noreply@nixfox.ca>";
user = "noreply@nixfox.ca";
passwordFile = pkgs.writeText "smtp_pass.txt" config.secrets.mailPass.nixfoxNoReply;
};
};
environment.persistence."/persist".directories = [ "/var/lib/mastodon" ];
};
}