2023-11-17 07:17:12 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
2024-06-15 17:17:50 +00:00
|
|
|
cfg = config.my.hardware.bluetooth;
|
2023-11-17 07:17:12 +00:00
|
|
|
in {
|
|
|
|
options = {
|
2024-06-15 17:17:50 +00:00
|
|
|
my.hardware.bluetooth.enable = lib.mkEnableOption "bluetooth";
|
2023-11-17 07:17:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# https://nixos.wiki/wiki/Bluetooth
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
environment.systemPackages = lib.mkIf config.services.xserver.enable (with pkgs; [blueberry]);
|
|
|
|
hardware.bluetooth = {
|
|
|
|
enable = true;
|
|
|
|
settings.General.FastConnectable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|