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