nixos/bluetooth: allow to specify custom bluez package

+11 -1
+11 -1
nixos/modules/services/hardware/bluetooth.nix
··· 3 with lib; 4 5 let 6 - bluez-bluetooth = pkgs.bluez; 7 cfg = config.hardware.bluetooth; 8 9 in { 10 ··· 19 type = types.bool; 20 default = true; 21 description = "Whether to power up the default Bluetooth controller on boot."; 22 }; 23 24 extraConfig = mkOption {
··· 3 with lib; 4 5 let 6 cfg = config.hardware.bluetooth; 7 + bluez-bluetooth = cfg.package; 8 9 in { 10 ··· 19 type = types.bool; 20 default = true; 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 + ''; 32 }; 33 34 extraConfig = mkOption {