2023-02-09 18:06:28 +01:00
|
|
|
{ lib, ... }:
|
2021-07-25 23:14:52 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../../../common/cpu/amd
|
2023-02-08 11:56:56 +01:00
|
|
|
../../../common/cpu/amd/pstate.nix
|
2023-02-08 11:56:30 +01:00
|
|
|
../../../common/gpu/amd
|
2022-11-13 02:54:59 +01:00
|
|
|
../../../common/gpu/nvidia/prime.nix
|
2021-07-25 23:14:52 +02:00
|
|
|
../../../common/pc/laptop
|
2023-02-08 11:57:46 +01:00
|
|
|
../../../common/pc/laptop/ssd
|
2021-07-25 23:14:52 +02:00
|
|
|
];
|
|
|
|
|
2023-02-10 07:54:19 +01:00
|
|
|
hardware.nvidia = {
|
|
|
|
# Enable DRM kernel mode setting
|
2024-01-29 21:55:36 +01:00
|
|
|
# This will also cause "PCI-Express Runtime D3 Power Management" to be enabled by default
|
|
|
|
modesetting.enable = lib.mkDefault true;
|
2024-01-29 21:54:38 +01:00
|
|
|
|
|
|
|
dynamicBoost.enable = true;
|
2023-02-10 07:54:19 +01:00
|
|
|
|
|
|
|
prime = {
|
|
|
|
amdgpuBusId = "PCI:4:0:0";
|
|
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
|
|
};
|
2021-07-25 23:14:52 +02:00
|
|
|
};
|
|
|
|
|
2023-02-09 18:06:28 +01:00
|
|
|
services = {
|
|
|
|
asusd.enable = lib.mkDefault true;
|
|
|
|
|
|
|
|
udev.extraHwdb = ''
|
|
|
|
evdev:name:*:dmi:bvn*:bvr*:bd*:svnASUS*:pn*:*
|
2023-09-11 13:38:26 +02:00
|
|
|
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
|
2023-02-09 18:06:28 +01:00
|
|
|
'';
|
|
|
|
};
|
2021-07-25 23:14:52 +02:00
|
|
|
}
|