2023-05-10 18:06:27 +00:00
|
|
|
{ lib, config, ... }:
|
2022-12-03 16:19:05 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../../../common/cpu/amd
|
|
|
|
../../../common/cpu/amd/pstate.nix
|
|
|
|
../../../common/gpu/amd
|
|
|
|
../../../common/pc/laptop
|
|
|
|
../../../common/pc/laptop/ssd
|
|
|
|
];
|
|
|
|
|
|
|
|
services = {
|
2022-12-03 16:38:26 +00:00
|
|
|
asusd.enable = lib.mkDefault true;
|
2023-01-01 17:31:25 +00:00
|
|
|
|
|
|
|
# fixes mic mute button
|
|
|
|
udev.extraHwdb = ''
|
|
|
|
evdev:name:*:dmi:bvn*:bvr*:bd*:svnASUS*:pn*:*
|
|
|
|
KEYBOARD_KEY_ff31007c=f20
|
|
|
|
'';
|
2022-12-03 16:19:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
boot = {
|
2023-07-16 18:49:56 +00:00
|
|
|
kernelParams = [ "pcie_aspm.policy=powersupersave" ];
|
2022-12-03 16:19:05 +00:00
|
|
|
};
|
2023-05-10 18:06:27 +00:00
|
|
|
|
|
|
|
assertions = [
|
|
|
|
{
|
|
|
|
assertion = (lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.2");
|
|
|
|
message = "The ga402 requires kernel version >=6.2 to ensure that fans are correctly managed. Please upgrade nixpkgs for this system.";
|
|
|
|
}
|
|
|
|
];
|
2022-12-03 16:19:05 +00:00
|
|
|
}
|