diff --git a/machines/gitea/forgejo/default.nix b/machines/gitea/forgejo/default.nix index e4450ce..c686e84 100644 --- a/machines/gitea/forgejo/default.nix +++ b/machines/gitea/forgejo/default.nix @@ -89,6 +89,20 @@ in }; }; + # Clean up dump files older than 60 days + systemd.tmpfiles.settings = { + forgejo = { + "/var/lib/forgejo/dump" = { + d = { + user = "git"; + group = "forgejo"; + mode = "0750"; + age = "60d"; + }; + }; + }; + }; + networking.firewall.allowedTCPPorts = [ 3000 ]; users.users.git = {