{ pkgs, config, ... }: { services.xserver.videoDrivers = [ "intel" "nvidia" ]; environment.variables.VDPAU_DRIVER = "va_gl"; hardware = { enableRedistributableFirmware = true; graphics = { enable = true; extraPackages = with pkgs; [ vpl-gpu-rt intel-media-driver intel-vaapi-driver libvdpau-va-gl nvidia-vaapi-driver ]; extraPackages32 = with pkgs.driversi686Linux; [ intel-vaapi-driver ]; }; nvidia = { package = config.boot.kernelPackages.nvidiaPackages.beta; powerManagement.enable = true; prime = { offload = { enable = true; enableOffloadCmd = true; }; nvidiaBusId = "PCI:1:0:0"; intelBusId = "PCI:0:2:0"; }; }; }; }