nixos/bluetooth: allow to specify custom bluez package

+11 -1
+11 -1
nixos/modules/services/hardware/bluetooth.nix
··· 3 3 with lib; 4 4 5 5 let 6 - bluez-bluetooth = pkgs.bluez; 7 6 cfg = config.hardware.bluetooth; 7 + bluez-bluetooth = cfg.package; 8 8 9 9 in { 10 10 ··· 19 19 type = types.bool; 20 20 default = true; 21 21 description = "Whether to power up the default Bluetooth controller on boot."; 22 + }; 23 + 24 + package = mkOption { 25 + type = types.package; 26 + default = pkgs.bluez; 27 + defaultText = "pkgs.bluez"; 28 + example = "pkgs.bluez.override { enableMidi = true; }"; 29 + description = '' 30 + Which BlueZ package to use. 31 + ''; 22 32 }; 23 33 24 34 extraConfig = mkOption {