From 107ab6ac423699407eeaaef79c8050af6df769c6 Mon Sep 17 00:00:00 2001 From: figsoda Date: Sun, 25 Jul 2021 17:14:52 -0400 Subject: [PATCH] add asus rog zephyrus ga401 --- README.md | 1 + asus/zephyrus/ga401/default.nix | 21 +++++++++++++++++++++ flake.nix | 1 + 3 files changed, 23 insertions(+) create mode 100644 asus/zephyrus/ga401/default.nix diff --git a/README.md b/README.md index 94bc34a..b187da6 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,7 @@ See code for all available configurations. | [Apple MacBook Pro 12,1](apple/macbook-pro/12-1) | `` | | [Apple MacBook Pro 10,1](apple/macbook-pro/10-1) | `` | | [Asus TUF FX504GD](asus/fx504gd) | `` | +| [Asus ROG Zephyrus G14 GA401](asus/zephyrus/ga401) | `` | | [BeagleBoard PocketBeagle](beagleboard/pocketbeagle) | `` | | [Dell G3 3779](dell/g3/3779) | `` | | [Dell Latitude 3480](dell/latitude/3480) | `` | diff --git a/asus/zephyrus/ga401/default.nix b/asus/zephyrus/ga401/default.nix new file mode 100644 index 0000000..9148e1d --- /dev/null +++ b/asus/zephyrus/ga401/default.nix @@ -0,0 +1,21 @@ +{ ... }: + +{ + imports = [ + ../../../common/cpu/amd + ../../../common/gpu/nvidia.nix + ../../../common/pc/laptop + ../../../common/pc/ssd + ]; + + hardware.nvidia.prime = { + amdgpuBusId = "PCI:4: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 b0b93f2..9224dfc 100644 --- a/flake.nix +++ b/flake.nix @@ -5,6 +5,7 @@ nixosModules = { dell-aspire-4810t = import ./acer/aspire/4810t; asus-fx504gd = import ./asus/fx504gd; + asus-zephyrus-ga401 = import ./asus/zephyrus/ga401; apple-macbook-air-3 = import ./apple/macbook-air/3; apple-macbook-air-4 = import apple/macbook-air/4; apple-macbook-air-6 = import apple/macbook-air/6;