Price Hiller
1660b2c740
Some checks failed
Check Formatting of Files / Check-Formatting (push) Has been cancelled
35 lines
800 B
Nix
35 lines
800 B
Nix
{ 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";
|
|
};
|
|
};
|
|
};
|
|
}
|