tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nixos/bluetooth: allow to specify custom bluez package
Ales Huzik
8 years ago
0555f247
7093810b
+11
-1
1 changed file
expand all
collapse all
unified
split
nixos
modules
services
hardware
bluetooth.nix
+11
-1
nixos/modules/services/hardware/bluetooth.nix
···
3
with lib;
4
5
let
6
-
bluez-bluetooth = pkgs.bluez;
7
cfg = config.hardware.bluetooth;
0
8
9
in {
10
···
19
type = types.bool;
20
default = true;
21
description = "Whether to power up the default Bluetooth controller on boot.";
0
0
0
0
0
0
0
0
0
0
22
};
23
24
extraConfig = mkOption {
···
3
with lib;
4
5
let
0
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 {