1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-01 00:29:40 +01:00
nixos-hardware/lenovo/yoga/6/13ALC6/default.nix

21 lines
512 B
Nix
Raw Normal View History

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
2022-12-24 00:38:10 +01:00
];
2022-12-28 21:10:35 +01:00
boot.initrd.kernelModules = [ "ideapad_laptop" ];
2022-12-24 00:38:10 +01:00
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;
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"];
}