Set up bluetooth experimental, show battery info for devices, etc...

This commit is contained in:
jay
2025-07-14 07:23:28 -04:00
parent e8e3288d0c
commit 4d55019f4e
2 changed files with 28 additions and 7 deletions

View File

@@ -1,12 +1,28 @@
{ ... }: { { pkgs, ... }: {
hardware.bluetooth = { hardware.bluetooth = {
enable = true; # enables support for Bluetooth enable = true; # enables support for Bluetooth
package = pkgs.bluez-experimental;
powerOnBoot = true; # powers up the default Bluetooth controller on boot powerOnBoot = true; # powers up the default Bluetooth controller on boot
settings.General = { settings = {
Privacy = "device"; LE = {
JustWorksRepairing = "always"; MinConnectionInterval = 16;
Class = "0x000100"; MaxConnectionInterval = 16;
FastConnectable = true; ConnectionLatency = 10;
ConnectionSupervisionTimeout = 100;
};
General = {
Enable = "Source,Sink,Media,Socket";
Privacy = "device";
JustWorksRepairing = "always";
Class = "0x000100";
Experimental = true;
FastConnectable = true;
};
Policy = {
AutoEnable = true;
};
}; };
}; };
} }

View File

@@ -4,7 +4,12 @@
systemd-boot.enable = true; systemd-boot.enable = true;
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
}; };
kernelPackages = pkgs.linuxPackages_xanmod_stable; kernelPackages = pkgs.linuxPackages_xanmod_stable;
extraModprobeConfig = ''
options bluetooth enable_ecred=1
'';
}; };
} }