From 061785322d93f63b0fa4882ac92030008932a083 Mon Sep 17 00:00:00 2001 From: the-furry-hubofeverything <53921912+the-furry-hubofeverything@users.noreply.github.com> Date: Wed, 20 Sep 2023 03:32:40 -0700 Subject: [PATCH] Add Omen 15-en0010ca --- README.md | 1 + flake.nix | 1 + omen/15-en0010ca/README.md | 6 ++++++ omen/15-en0010ca/default.nix | 22 ++++++++++++++++++++++ 4 files changed, 30 insertions(+) create mode 100644 omen/15-en0010ca/README.md create mode 100644 omen/15-en0010ca/default.nix diff --git a/README.md b/README.md index cdb3508..068b4b1 100644 --- a/README.md +++ b/README.md @@ -224,6 +224,7 @@ See code for all available configurations. | [Morefine M600](morefine/m600) | `` | | [Hardkernel Odroid HC4](hardkernel/odroid-hc4/default.nix) | `` | | [Hardkernel Odroid H3](hardkernel/odroid-h3/default.nix) | `` | +| [Omen 15-en0010ca](omen/15-en0010ca) | `` | | [Omen en00015p](omen/en00015p) | `` | | [One-Netbook OneNetbook 4](onenetbook/4) | `` | | [Panasonic Let's Note CF-LX4 ](panasonic/letsnote/cf-lx4) | `` | diff --git a/flake.nix b/flake.nix index cea6259..c927104 100644 --- a/flake.nix +++ b/flake.nix @@ -164,6 +164,7 @@ nxp-imx8qm-mek = import ./nxp/imx8qm-mek; hardkernel-odroid-hc4 = import ./hardkernel/odroid-hc4; hardkernel-odroid-h3 = import ./hardkernel/odroid-h3; + omen-15-en0010ca = import ./omen/15-en0010ca; omen-en00015p = import ./omen/en00015p; onenetbook-4 = import ./onenetbook/4; pcengines-apu = import ./pcengines/apu; diff --git a/omen/15-en0010ca/README.md b/omen/15-en0010ca/README.md new file mode 100644 index 0000000..f5a10ba --- /dev/null +++ b/omen/15-en0010ca/README.md @@ -0,0 +1,6 @@ +# HP Omen 15-en0001ca + +## ACPI platform profiles +This config enables `hp-wmi`, which allows switch between cool, balanced, and performance modes on the platform EC, used by power management tools like `power-profile-daemon` and `tlp`. + +Note - this is not yet compiled on Nixpkgs provided Kernels as of September 2023. See [the relevant PR](https://github.com/NixOS/nixpkgs/pull/255846). \ No newline at end of file diff --git a/omen/15-en0010ca/default.nix b/omen/15-en0010ca/default.nix new file mode 100644 index 0000000..a69ca78 --- /dev/null +++ b/omen/15-en0010ca/default.nix @@ -0,0 +1,22 @@ +{ lib, pkgs, ... }: + +{ + imports = [ + ../../common/cpu/amd + ../../common/gpu/amd + ../../common/gpu/nvidia/prime.nix + ../../common/pc/laptop + ../../common/pc/ssd + ]; + + # Enables ACPI platform profiles + # TODO - enable module after PR merge + # boot = lib.mkIf (lib.versionAtLeast pkgs.linux.version "6.1") { + # kernelModules = [ "hp-wmi" ]; + # }; + + hardware.nvidia.prime = { + amdgpuBusId = "PCI:7:0:0"; + nvidiaBusId = "PCI:1:0:0"; + }; +}