File tree Expand file tree Collapse file tree 3 files changed +41
-1
lines changed Expand file tree Collapse file tree 3 files changed +41
-1
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,8 @@ See code for all available configurations.
116116| [ Asus ROG Strix G713IE] ( asus/rog-strix/g713ie ) | ` <nixos-hardware/asus/rog-strix/g713ie> ` | ` asus-rog-strix-g713ie ` |
117117| [ Asus ROG Strix G733QS] ( asus/rog-strix/g733qs ) | ` <nixos-hardware/asus/rog-strix/g733qs> ` | ` asus-rog-strix-g733qs ` |
118118| [ Asus ROG Strix X570-E GAMING] ( asus/rog-strix/x570e ) | ` <nixos-hardware/asus/rog-strix/x570e> ` | ` asus-rog-strix-x570e ` |
119- | [ Asus ROG Zephyrus G14 GA401] ( asus/zephyrus/ga401 ) | ` <nixos-hardware/asus/zephyrus/ga401> ` | ` asus-zephyrus-ga401 ` |
119+ | [ Asus ROG Zephyrus G14 GA401IV (2020)] ( asus/zephyrus/ga401iv ) | ` <nixos-hardware/asus/zephyrus/ga401iv> ` | ` asus-zephyrus-ga401iv ` |
120+ | [ Asus ROG Zephyrus G14 GA401 (2021)] ( asus/zephyrus/ga401 ) | ` <nixos-hardware/asus/zephyrus/ga401> ` | ` asus-zephyrus-ga401 ` |
120121| [ Asus ROG Zephyrus G14 GA402] ( asus/zephyrus/ga402 ) | ` <nixos-hardware/asus/zephyrus/ga402> ` | ` asus-zephyrus-ga402 ` |
121122| [ Asus ROG Zephyrus G14 GA402X\* (2023)] ( asus/zephyrus/ga402x/amdgpu ) | ` <nixos-hardware/asus/zephyrus/ga402x/amdgpu> ` | ` asus-zephyrus-ga402x-amdgpu ` |
122123| [ Asus ROG Zephyrus G14 GA402X\* (2023)] ( asus/zephyrus/ga402x/nvidia ) | ` <nixos-hardware/asus/zephyrus/ga402x/nvidia> ` | ` asus-zephyrus-ga402x-nvidia ` |
Original file line number Diff line number Diff line change 1+ { lib , ... } :
2+
3+ {
4+ imports = [
5+ ../../../common/cpu/amd
6+ ../../../common/cpu/amd/pstate.nix
7+ ../../../common/gpu/amd
8+ ../../../common/gpu/nvidia/prime.nix
9+ ../../../common/gpu/nvidia/turing
10+ ../../../common/pc/laptop
11+ ../../../common/pc/ssd
12+ ] ;
13+
14+ hardware . nvidia = {
15+ # Enable DRM kernel mode setting
16+ # This will also cause "PCI-Express Runtime D3 Power Management" to be enabled by default
17+ modesetting . enable = lib . mkDefault true ;
18+
19+ # Dynamic boost is available on ampere GPUs and newer, not this laptop
20+ dynamicBoost . enable = lib . mkDefault false ;
21+
22+ prime = {
23+ amdgpuBusId = "PCI:4:0:0" ;
24+ nvidiaBusId = "PCI:1:0:0" ;
25+ } ;
26+ } ;
27+
28+ services = {
29+ asusd . enable = lib . mkDefault true ;
30+
31+ udev . extraHwdb = ''
32+ evdev:name:*:dmi:bvn*:bvr*:bd*:svnASUS*:pn*:*
33+ KEYBOARD_KEY_ff31007c=f20 # fixes mic mute button
34+ KEYBOARD_KEY_ff3100b2=home # Set fn+LeftArrow as Home
35+ KEYBOARD_KEY_ff3100b3=end # Set fn+RightArrow as End
36+ '' ;
37+ } ;
38+ }
Original file line number Diff line number Diff line change 8787 asus-zenbook-ux535 = import ./asus/zenbook/ux535 ;
8888 asus-zenbook-ux481-intelgpu = import ./asus/zenbook/ux481/intelgpu ;
8989 asus-zenbook-ux481-nvidia = import ./asus/zenbook/ux481/nvidia ;
90+ asus-zephyrus-ga401iv = import ./asus/zephyrus/ga401iv ;
9091 asus-zephyrus-ga401 = import ./asus/zephyrus/ga401 ;
9192 asus-zephyrus-ga402 = import ./asus/zephyrus/ga402 ;
9293 asus-zephyrus-ga402x = import ./asus/zephyrus/ga402x ;
You can’t perform that action at this time.
0 commit comments