33 lines
762 B
Nix
33 lines
762 B
Nix
# SPDX-FileCopyrightText: 2024 Simon Bruder <simon@sbruder.de>
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
{ config, lib, ... }:
|
|
|
|
{
|
|
sops.secrets.mastodon-mail = {
|
|
owner = config.services.mastodon.user;
|
|
sopsFile = ../secrets.yaml;
|
|
};
|
|
|
|
services.mastodon = {
|
|
enable = true;
|
|
configureNginx = true;
|
|
localDomain = "procrastination.space";
|
|
smtp = {
|
|
createLocally = false;
|
|
host = "vueko.sbruder.de";
|
|
port = 465;
|
|
user = "mastodon@sbruder.de";
|
|
passwordFile = config.sops.secrets.mastodon-mail.path;
|
|
fromAddress = config.services.mastodon.smtp.user;
|
|
authenticate = true;
|
|
};
|
|
streamingProcesses = 5;
|
|
extraConfig = {
|
|
SMTP_TLS = "true";
|
|
RAILS_LOG_LEVEL = "warn";
|
|
};
|
|
};
|
|
}
|