When you say you couldn't install it, how do you mean?
Did you install by package, or by running the Nvidia installer? Did you get errors, or it just didn't work afterward?
Edit: I didn't even think, but I bet you may have just tried to install the latest Nvidia drivers, which don't support a card as old as yours. Good solutions here: https://www.stevestreeting.com/2026/01/26/linux-mint-22.3-on-an-old-macbook-pro-nvidia-gpu/