deduplicate driver code
This commit is contained in:
		
							parent
							
								
									6911d314f4
								
							
						
					
					
						commit
						648c853e7c
					
				
					 1 changed files with 1 additions and 14 deletions
				
			
		|  | @ -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 | ||||
|       ]; | ||||
|     }) | ||||
|   ]; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Vinzenz Schroeter
						Vinzenz Schroeter