From 648c853e7cf2596f94b98ac45c69c87afe3124ac Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Fri, 23 Feb 2024 22:30:43 +0100 Subject: [PATCH] deduplicate driver code --- modules/hardware/intel.nix | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) 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 - ]; - }) ]; }