From cc98ba62b34e4ed514625bdf4e86fd2d5b424df2 Mon Sep 17 00:00:00 2001 From: Fugi Date: Thu, 11 Apr 2024 14:04:10 +0200 Subject: [PATCH] forgejo: add migration fix patch --- modules/gitea.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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;