If you’re using Nvidia graphics I suggest this piece of documentation for driver installation.
Essentially if you’re running Debian 13 (Trixie) then run these commands;
deb http://deb.debian.org/debian/ trixie main contrib non-free non-free-firmware
deb http://security.debian.org/debian-security/ trixie-security contrib non-free main non-free-firmware
deb http://deb.debian.org/debian/ trixie-updates non-free-firmware non-free contrib main
sudo apt update -y
sudo apt full-upgrade -y
sudo apt install linux-headers-generic nvidia-kernel-dkms nvidia-driver
nvidia-cuda-dev nvidia-cuda-toolkit
sudo apt autoclean
sudo apt autoremove -y
sudo reboot
Optional for RTX graphics cards, this enables the ray-tracing engine.
sudo apt install libnvoptix1
Just remember to disable secureboot if you haven’t already, otherwise the driver module will fail to start when you boot your computer likely throwing the kernel into a panic.