split CPU and GPU from common/cpu/intel

fix #388
This commit is contained in:
Bruno Bigras committed 2022-04-12 11:08:50 -04:00
1 parent 850308db3e
commit 53b470587f
5 files changed
+29 -14

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
{ config, lib, pkgs, ... }:
{
boot.initrd.kernelModules = [ "i915" ];
environment.variables = {
VDPAU_DRIVER = lib.mkIf config.hardware.opengl.enable (lib.mkDefault "va_gl");
};
hardware.opengl.extraPackages = with pkgs; [
vaapiIntel
libvdpau-va-gl
intel-media-driver
];
}
+4
View File
@@ -19,4 +19,8 @@ in
offload.enable = lib.mkDefault true;
# Hardware should specify the bus ID for intel/nvidia devices
};
hardware.opengl.extraPackages = with pkgs; [
vaapiVdpau
];
}