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:
parent
12d52a8025
commit
27032fb493
2 changed files with 0 additions and 29 deletions
|
@ -13,7 +13,6 @@ in
|
|||
../../../common/pc/hdd
|
||||
|
||||
./network.nix
|
||||
./igpu.nix
|
||||
];
|
||||
|
||||
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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in a new issue