dots/hosts/orion/modules/hardware.nix

25 lines
486 B
Nix

{ pkgs, ... }:
{
services.xserver.videoDrivers = [ "nvidia" ];
hardware = {
enableRedistributableFirmware = true;
graphics = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver
intel-vaapi-driver
libvdpau
];
};
nvidia = {
modesetting.enable = true;
nvidiaSettings = true;
open = true;
prime = {
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
};
};
}