summary refs log tree commit diff stats
path: root/system/services/mastodon/default.nix
blob: 6fb821e6d9ae0582145ae8095b080d256986c938 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{config, ...}: let
  emailAddress = "mastodon@vhack.eu";
in {
  services.mastodon = {
    enable = true;
    localDomain = "mstdn.vhack.eu";
    configureNginx = true;
    smtp = {
      authenticate = true;
      createLocally = false;
      fromAddress = emailAddress;
      user = emailAddress;
      host = "server1.vhack.eu";
      passwordFile = "${config.age.secrets.mastdonMail.path}";
    };
  };
}