nixos-hardware/lenovo/yoga/6/13ALC6/default.nix
Jörg Thalheim ae13b3761c lenovo/yoga/6/13ALC6: drop video acceleration driver
Those are not useful for AMD.
According to https://wiki.nixos.org/wiki/Accelerated_Video_Playback all
we need is enabling opengl drivers.
2024-06-26 14:50:27 +00:00

17 lines
426 B
Nix

{ lib, pkgs, ... }:
{
imports = [
../../../thinkpad/yoga.nix
../../../../common/gpu/amd/default.nix
];
boot.initrd.kernelModules = [ "ideapad_laptop" ];
# 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"];
}