nixos-hardware/lenovo/yoga/6/13ALC6/default.nix
2022-12-29 13:53:01 +00:00

21 lines
512 B
Nix

{ lib, pkgs, ... }:
{
imports = [
../../../thinkpad/yoga.nix
../../../../common/gpu/amd/default.nix
];
boot.initrd.kernelModules = [ "ideapad_laptop" ];
hardware.opengl.extraPackages = with pkgs; [
vaapiVdpau
libvdpau-va-gl
];
# latest kernel needed to make wifi work
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.16") pkgs.linuxPackages_latest;
# energy savings
boot.kernelParams = ["mem_sleep_default=deep" "pcie_aspm.policy=powersupersave"];
}