Cant active aceleration graphic in nixos using nvidia legacy patchs

I’m having an issue when trying to enable the NVIDIA graphics card (GeForce GT 650M) on my MacBook Pro 10,1. I want to activate GPU acceleration with the NVIDIA card for apps like Firefox, Discord, etc., because things like animations are running slowly.
I’ve already tried enabling the NVIDIA card, but from what I’ve researched, the current drivers aren’t compatible with the latest kernel versions.
I’ve tested kernels like 6.1, but sometimes I get a red screen when booting with the NVIDIA drivers (version 470.x), or just a black screen.

I don’t know if I did something wrong, it’s my first time trying to set up drivers for a legacy GPU :X.
I followed the Nix wiki for the NVIDIA configuration, but had no success.

Nix-version:
24.11