services.xserver.videoDrivers
NixOS option
The names of the video drivers the configuration supports. They will be tried in order until one that supports your card is found. Don’t combine those with “incompatible” OpenGL implementations, e.g. free ones (mesa-based) with proprietary ones. For unfree “nvidia*”, the supported GPU lists are on https://www.nvidia.com/object/unix.html
type: list of stringDefault
[ "modesetting" "fbdev" ]
Example
declared in: nixos/modules/services/x11/xserver.nixView source on NixOS/nixpkgs →[ "nvidia" "amdgpu" ]