diff --git a/modules/hardware/intel.nix b/modules/hardware/intel.nix index d38b194..2c51461 100644 --- a/modules/hardware/intel.nix +++ b/modules/hardware/intel.nix @@ -17,7 +17,7 @@ in { boot.kernelModules = ["kvm-intel"]; hardware.cpu.intel.updateMicrocode = true; }) - (lib.mkIf cfg.iGpu { + (lib.mkIf (cfg.iGpu || cfg.xe) { hardware.opengl = { extraPackages = with pkgs; [ intel-media-driver @@ -36,18 +36,5 @@ in { nvtop-intel ]; }) - (lib.mkIf cfg.xe { - hardware.opengl = { - extraPackages = with pkgs; [ - intel-media-driver - vaapiIntel - vaapiVdpau - libvdpau-va-gl - ]; - }; - environment.systemPackages = with pkgs; [ - nvtop-intel - ]; - }) ]; }