From e5a9c9391afa39027de15891b55b765bfd47ae7f Mon Sep 17 00:00:00 2001 From: prescientmoon Date: Fri, 11 Oct 2024 17:24:20 +0200 Subject: [PATCH] lapetus: Clean up old foregejo dumps --- hosts/nixos/lapetus/services/forgejo.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/nixos/lapetus/services/forgejo.nix b/hosts/nixos/lapetus/services/forgejo.nix index 49137bb..c107866 100644 --- a/hosts/nixos/lapetus/services/forgejo.nix +++ b/hosts/nixos/lapetus/services/forgejo.nix @@ -55,4 +55,9 @@ }; }; }; + + # Clean up dumps older than a week. + # The data is also saved in zfs snapshots and rsync backups, + # so this is just an extra layer of safety. + systemd.user.tmpfiles.rules = [ "d ${config.services.forgejo.stateDir}/dump - - - 7d" ]; }