Skip to content

Commit

Permalink
Merge pull request #1119 from Jdogzz/master
Browse files Browse the repository at this point in the history
lenovo-yoga-6-13ALC6: add mkDefault for bluetooth
  • Loading branch information
Mic92 committed Sep 18, 2024
2 parents 270ddd7 + 23a4ea7 commit abb4486
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lenovo/yoga/6/13ALC6/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, pkgs, ... }:

{
imports = [
Expand All @@ -9,15 +9,18 @@
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;
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"];
boot.kernelParams = [
"mem_sleep_default=deep"
"pcie_aspm.policy=powersupersave"
];

# Fix for unstable wifi connection on Lenovo laptops
boot.extraModprobeConfig = ''
options rtw89_pci disable_clkreq=y disable_aspm_l1=y disable_aspm_l1ss=y
'';

hardware.bluetooth.enable = true;
hardware.bluetooth.enable = lib.mkDefault true;
}

0 comments on commit abb4486

Please sign in to comment.