2022-12-24 00:38:10 +01:00
|
|
|
{ lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2022-12-28 21:10:35 +01:00
|
|
|
imports = [
|
|
|
|
../../../thinkpad/yoga.nix
|
|
|
|
../../../../common/gpu/amd/default.nix
|
2024-06-21 23:26:44 +02:00
|
|
|
../../../../common/gpu/24.05-compat.nix
|
2022-12-24 00:38:10 +01:00
|
|
|
];
|
2022-12-28 21:10:35 +01:00
|
|
|
|
|
|
|
boot.initrd.kernelModules = [ "ideapad_laptop" ];
|
2024-06-21 15:44:42 +02:00
|
|
|
hardware.graphics.extraPackages = with pkgs; [
|
2022-12-24 00:38:10 +01:00
|
|
|
vaapiVdpau
|
|
|
|
libvdpau-va-gl
|
|
|
|
];
|
|
|
|
|
2022-12-29 14:52:15 +01:00
|
|
|
# latest kernel needed to make wifi work
|
2022-12-29 12:42:08 +01:00
|
|
|
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.16") pkgs.linuxPackages_latest;
|
2022-12-24 00:38:10 +01:00
|
|
|
|
2022-12-28 21:10:35 +01:00
|
|
|
# energy savings
|
2022-12-24 00:38:10 +01:00
|
|
|
boot.kernelParams = ["mem_sleep_default=deep" "pcie_aspm.policy=powersupersave"];
|
|
|
|
}
|