Add mastodon

https://wiki.nixos.org/wiki/Mastodon
This commit is contained in:
Oliver Davies 2025-04-28 23:11:26 +01:00
parent 1cca820fa3
commit b0cccd36a6
3 changed files with 59 additions and 34 deletions

View file

@ -1,14 +1,21 @@
{ config, ... }:
{
security.acme = {
security.acme =
let
email = "oliver@oliverdavies.uk";
in
{
acceptTerms = true;
defaults = { inherit email; };
certs = {
"oliverdavies.uk" = {
inherit email;
domain = "oliverdavies.uk";
dnsProvider = "cloudflare";
email = "oliver@oliverdavies.uk";
environmentFile = config.age.secrets.cloudflare.path;
webroot = null;

View file

@ -2,6 +2,7 @@
imports = [
./homepage
./samba.nix
./mastodon.nix
./uptime-kuma.nix
];
}

View file

@ -0,0 +1,17 @@
{
services.mastodon = {
enable = true;
configureNginx = true;
localDomain = "social.oliverdavies.uk";
streamingProcesses = 3;
extraConfig = {
SINGLE_USER_MODE = "true";
};
smtp = {
fromAddress = "social@oliverdavies.uk";
};
};
}