20 lines
533 B
Nix
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;
|
||
|
};
|
||
|
};
|
||
|
}
|