2023-10-25 07:35:25 +02:00
|
|
|
{ lib, pkgs, ... }: {
|
|
|
|
imports = [
|
2023-11-10 21:26:56 +01:00
|
|
|
../.
|
2023-11-01 21:23:29 +01:00
|
|
|
../../../common/cpu/amd
|
|
|
|
../../../common/cpu/amd/pstate.nix
|
|
|
|
../../../common/gpu/amd
|
2023-10-25 07:35:25 +02: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 19:46:21 +02:00
|
|
|
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.1") (lib.mkDefault pkgs.linuxPackages_latest);
|
2023-10-25 07:35:25 +02:00
|
|
|
|
|
|
|
# AMD has better battery life with PPD over TLP:
|
|
|
|
# https://community.frame.work/t/responded-amd-7040-sleep-states/38101/13
|
|
|
|
services.power-profiles-daemon.enable = lib.mkDefault true;
|
|
|
|
}
|