From e18b759b1bc093e08c69f9ce1086b990d8d3baa8 Mon Sep 17 00:00:00 2001 From: Alexandre Acebedo Date: Sat, 3 Dec 2022 17:19:05 +0100 Subject: [PATCH 1/3] 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; From 56566dc47f906eda44b3622c11b75d40dc619e68 Mon Sep 17 00:00:00 2001 From: Alexandre Acebedo Date: Sat, 3 Dec 2022 17:38:26 +0100 Subject: [PATCH 2/3] fixup! Add support for GA402 --- asus/zephyrus/ga402/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asus/zephyrus/ga402/default.nix b/asus/zephyrus/ga402/default.nix index de938ad..0208cfd 100644 --- a/asus/zephyrus/ga402/default.nix +++ b/asus/zephyrus/ga402/default.nix @@ -1,4 +1,4 @@ -{ ... }: +{ lib, ... }: { imports = [ @@ -11,7 +11,7 @@ ]; services = { - asusd.enable = true; + asusd.enable = lib.mkDefault true; }; boot = { From f17316259fb4fcda31513e4d46568746644b9fb7 Mon Sep 17 00:00:00 2001 From: Alexandre Acebedo Date: Sat, 3 Dec 2022 17:41:33 +0100 Subject: [PATCH 3/3] fixup! Add support for GA402 --- asus/zephyrus/ga402/default.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/asus/zephyrus/ga402/default.nix b/asus/zephyrus/ga402/default.nix index 0208cfd..3d666af 100644 --- a/asus/zephyrus/ga402/default.nix +++ b/asus/zephyrus/ga402/default.nix @@ -6,7 +6,6 @@ ../../../common/cpu/amd/pstate.nix ../../../common/gpu/amd ../../../common/pc/laptop - ../../../common/pc/laptop/acpi_call.nix ../../../common/pc/laptop/ssd ];