mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	hp/elitebook/2560p: Remove redundant graphics settings.
This commit is contained in:
		
				
					committed by
					
						
						Jörg Thalheim
					
				
			
			
				
	
			
			
			
						parent
						
							12d52a8025
						
					
				
				
					commit
					27032fb493
				
			@@ -13,7 +13,6 @@ in
 | 
				
			|||||||
    ../../../common/pc/hdd
 | 
					    ../../../common/pc/hdd
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ./network.nix
 | 
					    ./network.nix
 | 
				
			||||||
    ./igpu.nix
 | 
					 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config = {
 | 
					  config = {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,28 +0,0 @@
 | 
				
			|||||||
{ config, pkgs, lib, ... }:
 | 
					 | 
				
			||||||
with lib;
 | 
					 | 
				
			||||||
let
 | 
					 | 
				
			||||||
  xcfg = config.services.xserver;
 | 
					 | 
				
			||||||
  cfg = config.hardware.hp.elitebook.graphics;
 | 
					 | 
				
			||||||
in
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  options.hardware.hp.elitebook.graphics = {
 | 
					 | 
				
			||||||
    enable = mkOption {
 | 
					 | 
				
			||||||
      default = xcfg.enable;
 | 
					 | 
				
			||||||
      example = !xcfg.enable;
 | 
					 | 
				
			||||||
      description = "Wether to enable iGPU related settings for HP Elitebook laptops";
 | 
					 | 
				
			||||||
      type = types.bool;
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
  };
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  config = mkIf cfg.enable {
 | 
					 | 
				
			||||||
    boot.initrd.kernelModules = [ "i915" ];
 | 
					 | 
				
			||||||
    hardware.opengl = {
 | 
					 | 
				
			||||||
      enable = mkDefault true;
 | 
					 | 
				
			||||||
      extraPackages = with pkgs; [
 | 
					 | 
				
			||||||
        vaapiIntel
 | 
					 | 
				
			||||||
        libvdpau-va-gl
 | 
					 | 
				
			||||||
      ];
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
  };
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
      
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user