mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-08 02:48:42 +08:00
asus-zephyrus-ga401iv: Add config for 2020 model of ga401
This commit is contained in:
38
asus/zephyrus/ga401iv/default.nix
Normal file
38
asus/zephyrus/ga401iv/default.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{ lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../../../common/cpu/amd
|
||||
../../../common/cpu/amd/pstate.nix
|
||||
../../../common/gpu/amd
|
||||
../../../common/gpu/nvidia/prime.nix
|
||||
../../../common/gpu/nvidia/turing
|
||||
../../../common/pc/laptop
|
||||
../../../common/pc/ssd
|
||||
];
|
||||
|
||||
hardware.nvidia = {
|
||||
# Enable DRM kernel mode setting
|
||||
# This will also cause "PCI-Express Runtime D3 Power Management" to be enabled by default
|
||||
modesetting.enable = lib.mkDefault true;
|
||||
|
||||
# Dynamic boost is available on ampere GPUs and newer, not this laptop
|
||||
dynamicBoost.enable = lib.mkDefault false;
|
||||
|
||||
prime = {
|
||||
amdgpuBusId = "PCI:4:0:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
asusd.enable = lib.mkDefault true;
|
||||
|
||||
udev.extraHwdb = ''
|
||||
evdev:name:*:dmi:bvn*:bvr*:bd*:svnASUS*:pn*:*
|
||||
KEYBOARD_KEY_ff31007c=f20 # fixes mic mute button
|
||||
KEYBOARD_KEY_ff3100b2=home # Set fn+LeftArrow as Home
|
||||
KEYBOARD_KEY_ff3100b3=end # Set fn+RightArrow as End
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user