2023-02-09 12:06:28 -05:00
|
|
|
{ lib, ... }:
|
2021-07-25 17:14:52 -04:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../../../common/cpu/amd
|
2023-02-08 05:56:56 -05:00
|
|
|
../../../common/cpu/amd/pstate.nix
|
2023-02-08 05:56:30 -05:00
|
|
|
../../../common/gpu/amd
|
2022-11-12 20:54:59 -05:00
|
|
|
../../../common/gpu/nvidia/prime.nix
|
2021-07-25 17:14:52 -04:00
|
|
|
../../../common/pc/laptop
|
2023-02-08 05:57:46 -05:00
|
|
|
../../../common/pc/laptop/ssd
|
2021-07-25 17:14:52 -04:00
|
|
|
];
|
|
|
|
|
2023-02-10 01:54:19 -05:00
|
|
|
hardware.nvidia = {
|
|
|
|
# PCI-Express Runtime D3 Power Management is enabled by default on this laptop
|
|
|
|
# But it can fix screen tearing & suspend/resume screen corruption in sync mode
|
|
|
|
modesetting.enable = lib.mkDefault true;
|
|
|
|
# Enable DRM kernel mode setting
|
|
|
|
powerManagement.enable = lib.mkDefault true;
|
|
|
|
|
|
|
|
prime = {
|
|
|
|
amdgpuBusId = "PCI:4:0:0";
|
|
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
|
|
};
|
2021-07-25 17:14:52 -04:00
|
|
|
};
|
|
|
|
|
2023-02-09 12:06:28 -05:00
|
|
|
services = {
|
|
|
|
asusd.enable = lib.mkDefault true;
|
|
|
|
|
|
|
|
# fixes mic mute button
|
|
|
|
udev.extraHwdb = ''
|
|
|
|
evdev:name:*:dmi:bvn*:bvr*:bd*:svnASUS*:pn*:*
|
|
|
|
KEYBOARD_KEY_ff31007c=f20
|
|
|
|
'';
|
|
|
|
};
|
2021-07-25 17:14:52 -04:00
|
|
|
}
|