Have you searched the forum about how to configure nvidia?
Next to enable the runtime an other important setting is configure the right capabilities, see more at Incus Docket and Nvidia as one example or look at Install NVIDIA KVM driver on the host machine, how to use CUDA in MIG instance
Hope it helps