From e18b759b1bc093e08c69f9ce1086b990d8d3baa8 Mon Sep 17 00:00:00 2001 From: Alexandre Acebedo Date: Sat, 3 Dec 2022 17:19:05 +0100 Subject: [PATCH] Add support for GA402 --- README.md | 1 + asus/zephyrus/ga402/default.nix | 20 ++++++++++++++++++++ flake.nix | 1 + 3 files changed, 22 insertions(+) create mode 100644 asus/zephyrus/ga402/default.nix diff --git a/README.md b/README.md index a239618..d420276 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,7 @@ See code for all available configurations. | [Apple MacBook Pro 14,1](apple/macbook-pro/14-1) | `` | | [Asus ROG Strix G733QS](asus/rog-strix/g733qs) | `` | | [Asus ROG Zephyrus G14 GA401](asus/zephyrus/ga401) | `` | +| [Asus ROG Zephyrus G14 GA402](asus/zephyrus/ga402) | `` | | [Asus ROG Zephyrus G15 GA503](asus/zephyrus/ga503) | `` | | [Asus TUF FX504GD](asus/fx504gd) | `` | | [BeagleBoard PocketBeagle](beagleboard/pocketbeagle) | `` | diff --git a/asus/zephyrus/ga402/default.nix b/asus/zephyrus/ga402/default.nix new file mode 100644 index 0000000..de938ad --- /dev/null +++ b/asus/zephyrus/ga402/default.nix @@ -0,0 +1,20 @@ +{ ... }: + +{ + 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 + ]; + + services = { + asusd.enable = true; + }; + + boot = { + kernelParams = [ "pcie_aspm.policy=powersupersave" "acpi.prefer_microsoft_dsm_guid=1" ]; + }; +} diff --git a/flake.nix b/flake.nix index 602d2dc..5c4f4c9 100644 --- a/flake.nix +++ b/flake.nix @@ -17,6 +17,7 @@ asus-fx504gd = import ./asus/fx504gd; asus-rog-strix-g733qs = import ./asus/rog-strix/g733qs; asus-zephyrus-ga401 = import ./asus/zephyrus/ga401; + asus-zephyrus-ga402 = import ./asus/zephyrus/ga402; asus-zephyrus-ga503 = import ./asus/zephyrus/ga503; beagleboard-pocketbeagle = import ./beagleboard/pocketbeagle; dell-e7240 = import ./dell/e7240;