How do I get nvidia working for that legacy card…?
You would need the legacy 340.xx driver for that chip:
https://packages.debian.org/search?searchon=names&keywords=nvidia-legacy-340xx-driver
However, the Nouveau driver is probably be your best bet with that old of a chip.