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" ]; }