diff --git a/modules/gitea.nix b/modules/gitea.nix index c66bd3a..513b1a4 100644 --- a/modules/gitea.nix +++ b/modules/gitea.nix @@ -19,7 +19,15 @@ in services.forgejo = { enable = true; - # package = pkgs.forgejo; # community fork + package = pkgs.forgejo.overrideAttrs (_old: { + patches = [ + # migration fix + (pkgs.fetchpatch { + url = "https://codeberg.org/forgejo/forgejo/commit/ae463c7c559e02975ce5e758d8780def978eebee.patch"; + hash = "sha256-cOXPvkLS0n+ynSBTrmEtumZ2PYBeCZmxPpFktqkw6Fo="; + }) + ]; + }); user = gitUser; group = gitUser; lfs.enable = true;