Skip to content

Commit 5e6ecb9

Browse files
committed
asus-zephyrus-ga401iv: Add config for 2020 model of ga401
1 parent 7467f15 commit 5e6ecb9

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

asus/zephyrus/ga401iv/default.nix

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
}

0 commit comments

Comments
 (0)