From 097764c8930ad8b0632f6eb9d96eb9c9b65a62f5 Mon Sep 17 00:00:00 2001 From: bhetman <583552+bhetman@users.noreply.github.com> Date: Tue, 31 Oct 2023 00:05:10 -0400 Subject: [PATCH] Add HP Elitebook 845 g7 configuration --- README.md | 1 + flake.nix | 1 + hp/elitebook/845/g7/default.nix | 25 +++++++++++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 hp/elitebook/845/g7/default.nix diff --git a/README.md b/README.md index 0de491a..c374326 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,7 @@ See code for all available configurations. | [GPD WIN 2](gpd/win-2) | `` | | [Google Pixelbook](google/pixelbook) | `` | | [HP Elitebook 2560p](hp/elitebook/2560p) | `` | +| [HP Elitebook 845g7](hp/elitebook/845/g7) | `` | | [HP Elitebook 845g9](hp/elitebook/845/g9) | `` | | [HP Notebook 14-df0023](hp/notebook/14-df0023) | `` | | [i.MX8QuadMax Multisensory Enablement Kit](nxp/imx8qm-mek/) | `` | diff --git a/flake.nix b/flake.nix index 03fc0ef..dba8f28 100644 --- a/flake.nix +++ b/flake.nix @@ -75,6 +75,7 @@ gpd-pocket-3 = import ./gpd/pocket-3; gpd-win-2 = import ./gpd/win-2; hp-elitebook-2560p = import ./hp/elitebook/2560p; + hp-elitebook-845g7 = import ./hp/elitebook/845/g7; hp-elitebook-845g9 = import ./hp/elitebook/845/g9; hp-notebook-14-df0023 = import ./hp/notebook/14-df0023; intel-nuc-8i7beh = import ./intel/nuc/8i7beh; diff --git a/hp/elitebook/845/g7/default.nix b/hp/elitebook/845/g7/default.nix new file mode 100644 index 0000000..6c0cb49 --- /dev/null +++ b/hp/elitebook/845/g7/default.nix @@ -0,0 +1,25 @@ +{ config, pkgs, lib, ... }: + +{ + imports = + [ + ../../../../common/cpu/amd + ../../../../common/cpu/amd/pstate.nix + ../../../../common/gpu/amd + ../../../../common/pc/laptop + ../../../../common/pc/laptop/acpi_call.nix + ../../../../common/pc/laptop/ssd + ]; + + hardware.enableRedistributableFirmware = lib.mkDefault true; + boot.kernelModules = [ "synaptics_usb" ]; + boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.3") (lib.mkDefault pkgs.linuxPackages_latest); + + # disable Scatter/Gather APU recently enabled by default, + # which results in white screen after display reconfiguration + boot.kernelParams = [ "amdgpu.sg_display=0" ]; + + services.xserver = { + videoDrivers = [ "amdgpu" ]; + }; +}