From 87c61c300c4894f56a5d032840a6475a1f258ba0 Mon Sep 17 00:00:00 2001 From: cy Date: Tue, 31 Dec 2024 15:25:02 -0500 Subject: [PATCH] (try to) fix bluetooth --- hosts/ytnix/default.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/hosts/ytnix/default.nix b/hosts/ytnix/default.nix index 2690e01..f4a0d8c 100644 --- a/hosts/ytnix/default.nix +++ b/hosts/ytnix/default.nix @@ -47,9 +47,17 @@ }; tmp.cleanOnBoot = true; kernelPackages = pkgs.linuxPackages_latest; + + # fix bluetooth extraModulePackages = with config.boot.kernelPackages; [ - rtl8821ce + rtw88 ]; + # see https://bugzilla.kernel.org/show_bug.cgi?id=215496#c22 + # and https://github.com/lwfinger/rtw88/issues/61 + extraModprobeConfig = '' + options rtw88_core disable_lps_deep=y + options rtw88_pci disable_aspm=y + ''; }; networking = { @@ -67,7 +75,10 @@ networkmanager = { enable = true; dns = "none"; - wifi.backend = "iwd"; + wifi = { + backend = "iwd"; + powersave = false; # fixes bluetooth; see above + }; }; nameservers = [ "31.59.129.225"