hp/elitebook/2560p: Remove redundant graphics settings.

This commit is contained in:
Antoine Viallon 2022-01-25 09:55:24 +01:00 committed by Jörg Thalheim
parent 12d52a8025
commit 27032fb493
2 changed files with 0 additions and 29 deletions

View file

@ -13,7 +13,6 @@ in
../../../common/pc/hdd ../../../common/pc/hdd
./network.nix ./network.nix
./igpu.nix
]; ];
config = { config = {

View file

@ -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
];
};
};
}