From 83b4e6846375887bae7393479dd52b5764c6a41a Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Tue, 25 Jan 2022 09:55:24 +0100 Subject: [PATCH] hp/elitebook/2560p: Remove redundant graphics settings. --- hp/elitebook/2560p/default.nix | 1 - hp/elitebook/2560p/igpu.nix | 28 ---------------------------- 2 files changed, 29 deletions(-) delete mode 100644 hp/elitebook/2560p/igpu.nix diff --git a/hp/elitebook/2560p/default.nix b/hp/elitebook/2560p/default.nix index 2055532..de34e15 100644 --- a/hp/elitebook/2560p/default.nix +++ b/hp/elitebook/2560p/default.nix @@ -13,7 +13,6 @@ in ../../../common/pc/hdd ./network.nix - ./igpu.nix ]; config = { diff --git a/hp/elitebook/2560p/igpu.nix b/hp/elitebook/2560p/igpu.nix deleted file mode 100644 index 2b6c789..0000000 --- a/hp/elitebook/2560p/igpu.nix +++ /dev/null @@ -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 - ]; - }; - }; -} -