33 lines
836 B
Nix
33 lines
836 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
###### intel igpu ########
|
|
|
|
hardware.opengl.enable = true;
|
|
#hardware.opengl.extraPackages = [ pkgs.mesa.drivers ];
|
|
#hardware.opengl.extraPackages = [ pkgs.vaapiVdpau ];
|
|
|
|
hardware.opengl.extraPackages = with pkgs; [
|
|
intel-media-driver
|
|
vaapiVdpau
|
|
libvdpau-va-gl
|
|
];
|
|
|
|
hardware.nvidia.nvidiaSettings = false;
|
|
hardware.nvidia.modesetting.enable = true;
|
|
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
|
|
##### nvidia offloading ########
|
|
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
|
|
hardware.nvidia.prime = {
|
|
sync.enable = true;
|
|
|
|
# Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
|
|
# Bus ID of the Intel GPU. You can find it using lspci, either under 3D or VGA
|
|
intelBusId = "PCI:0:2:0";
|
|
};
|
|
}
|