From 23a4ea7a0d1c5cb52f6f3ace8ce5b85da9e3b9e6 Mon Sep 17 00:00:00 2001 From: flakeuser Date: Mon, 9 Sep 2024 05:49:52 -0700 Subject: [PATCH] lenovo-yoga-6-13ALC6: add mkDefault for bluetooth --- lenovo/yoga/6/13ALC6/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lenovo/yoga/6/13ALC6/default.nix b/lenovo/yoga/6/13ALC6/default.nix index a0cf015e6..655e9de9f 100644 --- a/lenovo/yoga/6/13ALC6/default.nix +++ b/lenovo/yoga/6/13ALC6/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ lib, pkgs, ... }: { imports = [ @@ -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; }