2023-10-25 01:35:25 -04:00
|
|
|
{ lib, pkgs, ... }: {
|
|
|
|
imports = [
|
2023-11-10 16:10:31 -05:00
|
|
|
../common
|
|
|
|
../common/amd.nix
|
2023-10-25 01:35:25 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
# Newer kernel is better for amdgpu driver updates
|
|
|
|
# Requires at least 5.16 for working wi-fi and bluetooth (RZ616, kmod mt7922):
|
|
|
|
# https://wireless.wiki.kernel.org/en/users/drivers/mediatek
|
2023-10-25 13:46:21 -04:00
|
|
|
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.1") (lib.mkDefault pkgs.linuxPackages_latest);
|
2023-10-25 01:35:25 -04:00
|
|
|
|
|
|
|
# Custom udev rules
|
|
|
|
services.udev.extraRules = ''
|
2023-11-13 17:32:05 -05:00
|
|
|
# Prevent wake when plugging in AC during suspend. Trade-off: keyboard wake disabled. See:
|
|
|
|
# https://community.frame.work/t/tracking-framework-amd-ryzen-7040-series-lid-wakeup-behavior-feedback/39128/45
|
|
|
|
#ACTION=="add", SUBSYSTEM=="serio", DRIVERS=="atkbd", ATTR{power/wakeup}="disabled"
|
2023-10-25 01:35:25 -04:00
|
|
|
'';
|
|
|
|
}
|