nixos/gitea: fix pre start script (#44979)

The gitea path is hardcoded in hooks directory in files of paths like:
repositories/<user>/<repo>.git/hooks/update.d/gitea

Changed files
+1 -1
nixos
modules
services
misc
+1 -1
nixos/modules/services/misc/gitea.nix
···
mkdir -p ${cfg.repositoryRoot}
# update all hooks' binary paths
-
HOOKS=$(find ${cfg.repositoryRoot} -mindepth 4 -maxdepth 5 -type f -wholename "*git/hooks/*")
+
HOOKS=$(find ${cfg.repositoryRoot} -mindepth 4 -maxdepth 6 -type f -wholename "*git/hooks/*")
if [ "$HOOKS" ]
then
sed -ri 's,/nix/store/[a-z0-9.-]+/bin/gitea,${gitea.bin}/bin/gitea,g' $HOOKS