nixos-config/hosts/phantom/mastodon.nix

30 lines
681 B
Nix
Raw Normal View History

{
config,
pkgs,
inputs,
...
}:
{
2024-03-28 21:56:52 -03:00
services.mastodon = {
enable = true;
configureNginx = true;
2024-05-11 18:00:19 -03:00
localDomain = "social.lelgenio.com";
2024-05-11 18:32:05 -03:00
smtp = {
authenticate = true;
host = "lelgenio.com";
fromAddress = "noreply@social.lelgenio.com";
user = "noreply@social.lelgenio.com";
passwordFile = config.age.secrets.phantom-mastodon-mailer-password.path;
};
2024-03-28 21:56:52 -03:00
streamingProcesses = 2;
extraConfig.SINGLE_USER_MODE = "true";
2024-06-20 23:24:59 -03:00
mediaAutoRemove.olderThanDays = 5;
2024-03-28 21:56:52 -03:00
};
2024-05-11 18:32:05 -03:00
age.secrets.phantom-mastodon-mailer-password = {
file = ../../secrets/phantom-mastodon-mailer-password.age;
mode = "400";
owner = "mastodon";
};
2024-03-28 21:56:52 -03:00
}