flake/machines/nixos/hardware/gpu/intel.nix
Guanran Wang 89f91afa4e
hardware: overhaul hardware configuration
- moved nvidia prime `xxxBusId` to machines specific configuration
- moved hostname config to flake.nix
- added per-machine configuration
  (example usage: multiple machines with same model)
2023-10-07 16:19:15 +08:00

19 lines
No EOL
691 B
Nix

{ pkgs, ... }:
# Following https://nixos.wiki/wiki/Intel_Graphics
{
boot.initrd.kernelModules = [ "i915" ]; # if not enabled, plymouth's distro logo wont show for some reason
nixpkgs.config.packageOverrides = pkgs: { vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; }; };
hardware.opengl = {
extraPackages = with pkgs; [
intel-media-driver # libva_driver_name=ihd
vaapiIntel # libva_driver_name=i965 (older but works better for firefox/chromium)
vaapiVdpau
libvdpau-va-gl
intel-compute-runtime # intel opencl
intel-media-driver # intel vaapi
];
extraPackages32 = with pkgs; [ pkgsi686Linux.vaapiIntel ];
};
}