nixos-hardware/lenovo/yoga/6/13ALC6/default.nix

22 lines
558 B
Nix
Raw Normal View History

2022-12-23 18:38:10 -05:00
{ lib, pkgs, ... }:
{
2022-12-28 15:10:35 -05:00
imports = [
../../../thinkpad/yoga.nix
../../../../common/gpu/amd/default.nix
2024-06-21 17:26:44 -04:00
../../../../common/gpu/24.05-compat.nix
2022-12-23 18:38:10 -05:00
];
2022-12-28 15:10:35 -05:00
boot.initrd.kernelModules = [ "ideapad_laptop" ];
2024-06-21 09:44:42 -04:00
hardware.graphics.extraPackages = with pkgs; [
2022-12-23 18:38:10 -05:00
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;
2022-12-23 18:38:10 -05:00
2022-12-28 15:10:35 -05:00
# energy savings
2022-12-23 18:38:10 -05:00
boot.kernelParams = ["mem_sleep_default=deep" "pcie_aspm.policy=powersupersave"];
}