nixos-config/modules/servers/mastodon.nix
2021-03-18 22:37:59 +03:00

20 lines
533 B
Nix

{ config, pkgs, lib, ... }: {
secrets.email-mastodon = {
owner = "mastodon:mastodon";
encrypted = "/home/balsoft/.password-store/email/mastodon@balsoft.ru.gpg";
services = [ "mastodon-web" ];
};
services.mastodon = {
enable = true;
configureNginx = true;
localDomain = "social.balsoft.ru";
smtp = {
createLocally = false;
fromAddress = "mastodon@balsoft.ru";
user = "mastodon";
host = "balsoft.ru";
passwordFile = config.secrets.email-mastodon.decrypted;
};
};
}