nixos-config/profiles/servers/mastodon.nix

20 lines
533 B
Nix
Raw Normal View History

2021-03-18 23:37:59 +04:00
{ 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;
};
};
}