nixos/bluetooth: allow to specify custom bluez package
This commit is contained in:
parent
7093810b0c
commit
0555f247dc
|
@ -3,8 +3,8 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
bluez-bluetooth = pkgs.bluez;
|
|
||||||
cfg = config.hardware.bluetooth;
|
cfg = config.hardware.bluetooth;
|
||||||
|
bluez-bluetooth = cfg.package;
|
||||||
|
|
||||||
in {
|
in {
|
||||||
|
|
||||||
|
@ -21,6 +21,16 @@ in {
|
||||||
description = "Whether to power up the default Bluetooth controller on boot.";
|
description = "Whether to power up the default Bluetooth controller on boot.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.bluez;
|
||||||
|
defaultText = "pkgs.bluez";
|
||||||
|
example = "pkgs.bluez.override { enableMidi = true; }";
|
||||||
|
description = ''
|
||||||
|
Which BlueZ package to use.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
type = types.lines;
|
type = types.lines;
|
||||||
default = "";
|
default = "";
|
||||||
|
|
Loading…
Reference in a new issue