1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-26 21:09:42 +01:00

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 dc1a019265
commit 83b4e68463
No known key found for this signature in database
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
];
};
};
}