mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-23 03:19:42 +01:00
lenovo-yoga-6-13ALC6: add mkDefault for bluetooth
This commit is contained in:
parent
166dee4f88
commit
23a4ea7a0d
1 changed files with 7 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, pkgs, ... }:
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -9,15 +9,18 @@
|
||||||
boot.initrd.kernelModules = [ "ideapad_laptop" ];
|
boot.initrd.kernelModules = [ "ideapad_laptop" ];
|
||||||
|
|
||||||
# latest kernel needed to make wifi work
|
# latest kernel needed to make wifi work
|
||||||
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.16") pkgs.linuxPackages_latest;
|
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.16") pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
# energy savings
|
# energy savings
|
||||||
boot.kernelParams = ["mem_sleep_default=deep" "pcie_aspm.policy=powersupersave"];
|
boot.kernelParams = [
|
||||||
|
"mem_sleep_default=deep"
|
||||||
|
"pcie_aspm.policy=powersupersave"
|
||||||
|
];
|
||||||
|
|
||||||
# Fix for unstable wifi connection on Lenovo laptops
|
# Fix for unstable wifi connection on Lenovo laptops
|
||||||
boot.extraModprobeConfig = ''
|
boot.extraModprobeConfig = ''
|
||||||
options rtw89_pci disable_clkreq=y disable_aspm_l1=y disable_aspm_l1ss=y
|
options rtw89_pci disable_clkreq=y disable_aspm_l1=y disable_aspm_l1ss=y
|
||||||
'';
|
'';
|
||||||
|
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = lib.mkDefault true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue