dots/hosts/orion/modules/hardware.nix

38 lines
824 B
Nix

{
pkgs,
lib,
config,
...
}:
{
services.xserver.videoDrivers = [ "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 = {
nvidiaSettings = true;
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";
};
};
};
}