nixos-config/hosts/phantom/mastodon.nix

24 lines
674 B
Nix
Raw Normal View History

2024-03-28 21:56:52 -03:00
{ config, pkgs, inputs, ... }: {
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-04-06 20:38:46 -03:00
mediaAutoRemove.olderThanDays = 10;
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
}