From 41e4d3427c6f341aa640c22d9fd9ce99719c4725 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Fri, 5 Apr 2024 23:50:04 +0200 Subject: [PATCH] mastodon: clean media older than 7 days Currently we keep everything for 30 days, which is about 180GB --- hosts/nachtigall/apps/mastodon.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/nachtigall/apps/mastodon.nix b/hosts/nachtigall/apps/mastodon.nix index babb4647..e194d9bb 100644 --- a/hosts/nachtigall/apps/mastodon.nix +++ b/hosts/nachtigall/apps/mastodon.nix @@ -61,6 +61,9 @@ passwordFile = "/run/agenix/mastodon-smtp-password"; fromAddress = "mastodon-notifications@pub.solar"; }; + mediaAutoRemove = { + olderThanDays = 7; + }; extraEnvFiles = [ "/run/agenix/mastodon-extra-env-secrets" ];