From bfbc3a181d28f12e1e8de733b37f10a4686e2b9e Mon Sep 17 00:00:00 2001 From: Celso Miranda <769237+celsomiranda@users.noreply.github.com> Date: Wed, 14 Sep 2022 06:25:11 +0100 Subject: [PATCH] Add support for Omen en00015p laptop (#457) --- README.md | 1 + flake.nix | 1 + omen/en00015p/default.nix | 15 +++++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 omen/en00015p/default.nix diff --git a/README.md b/README.md index 0600c98..8c56dac 100644 --- a/README.md +++ b/README.md @@ -179,6 +179,7 @@ See code for all available configurations. | [MSI GL62/CX62](msi/gl62) | `` | | [Microsoft Surface Pro 3](microsoft/surface-pro/3) | `` | | [Microsoft Surface Range](microsoft/surface) | `` | +| [Omen en00015p](omen/en00015p) | `` | | [One-Netbook OneNetbook 4](onenetbook/4) | `` | | [PC Engines APU](pcengines/apu) | `` | | [PINE64 Pinebook Pro](pine64/pinebook-pro/) | `` | diff --git a/flake.nix b/flake.nix index b34e847..e13487f 100644 --- a/flake.nix +++ b/flake.nix @@ -117,6 +117,7 @@ microsoft-surface-pro-3 = import ./microsoft/surface-pro/3; msi-gs60 = import ./msi/gs60; msi-gl62 = import ./msi/gl62; + omen-en00015p = import ./omen/en00015p; onenetbook-4 = import ./onenetbook/4; pcengines-apu = import ./pcengines/apu; pine64-pinebook-pro = import ./pine64/pinebook-pro; diff --git a/omen/en00015p/default.nix b/omen/en00015p/default.nix new file mode 100644 index 0000000..8a97003 --- /dev/null +++ b/omen/en00015p/default.nix @@ -0,0 +1,15 @@ +{ ... }: + +{ + imports = [ + ../../common/cpu/amd + ../../common/gpu/nvidia.nix + ../../common/pc/laptop + ../../common/pc/ssd + ]; + + hardware.nvidia.prime = { + amdgpuBusId = "PCI:6:0:0"; + nvidiaBusId = "PCI:1:0:0"; + }; +}