From 70325e398b4cf1410ed024d9dea486f61446878b Mon Sep 17 00:00:00 2001 From: CodeChomper Date: Tue, 18 Jul 2023 19:23:58 -0700 Subject: [PATCH] Added Asus Zephyrus GA502 --- README.md | 1 + asus/zephyrus/ga502/default.nix | 21 +++++++++++++++++++++ flake.nix | 1 + 3 files changed, 23 insertions(+) create mode 100644 asus/zephyrus/ga502/default.nix diff --git a/README.md b/README.md index 1a72c79..ffff350 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,7 @@ See code for all available configurations. | [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 GA502](asus/zephyrus/ga502) | `` | | [Asus ROG Zephyrus G15 GA503](asus/zephyrus/ga503) | `` | | [Asus TUF FX504GD](asus/fx504gd) | `` | | [BeagleBoard PocketBeagle](beagleboard/pocketbeagle) | `` | diff --git a/asus/zephyrus/ga502/default.nix b/asus/zephyrus/ga502/default.nix new file mode 100644 index 0000000..0e98b25 --- /dev/null +++ b/asus/zephyrus/ga502/default.nix @@ -0,0 +1,21 @@ +{ ... }: + +{ + imports = [ + ../../../common/cpu/amd + ../../../common/gpu/nvidia/prime.nix + ../../../common/pc/laptop + ../../../common/pc/ssd + ]; + + hardware.nvidia.prime = { + amdgpuBusId = "PCI:6:0:0"; + nvidiaBusId = "PCI:1:0:0"; + }; + + # fixes mic mute button + services.udev.extraHwdb = '' + evdev:name:*:dmi:bvn*:bvr*:bd*:svnASUS*:pn*:* + KEYBOARD_KEY_ff31007c=f20 + ''; +} diff --git a/flake.nix b/flake.nix index ea302bb..9293072 100644 --- a/flake.nix +++ b/flake.nix @@ -19,6 +19,7 @@ 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-ga502 = import ./asus/zephyrus/ga502; asus-zephyrus-ga503 = import ./asus/zephyrus/ga503; beagleboard-pocketbeagle = import ./beagleboard/pocketbeagle; dell-e7240 = import ./dell/e7240;