mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-09 20:49:40 +01:00
3980e7816c
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
18 lines
463 B
Nix
18 lines
463 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"];
|
|
|
|
hardware.bluetooth.enable = true;
|
|
}
|