summary refs log tree commit diff
path: root/nixos/modules/services/hardware
diff options
context:
space:
mode:
authorMatthew Justin Bauer <mjbauer95@gmail.com>2018-04-17 10:54:23 -0500
committerGitHub <noreply@github.com>2018-04-17 10:54:23 -0500
commit8691bb57d3c112a5583981ffde9f685d51e904cc (patch)
tree3001033e80a58fdddef9f287c1e4d025e3c0f1b4 /nixos/modules/services/hardware
parentef7f1c5e03e503568b342841540b889f6fba1171 (diff)
parent0555f247dcb9782fbb77e5896006d4ad95b3750b (diff)
downloadnixlib-8691bb57d3c112a5583981ffde9f685d51e904cc.tar
nixlib-8691bb57d3c112a5583981ffde9f685d51e904cc.tar.gz
nixlib-8691bb57d3c112a5583981ffde9f685d51e904cc.tar.bz2
nixlib-8691bb57d3c112a5583981ffde9f685d51e904cc.tar.lz
nixlib-8691bb57d3c112a5583981ffde9f685d51e904cc.tar.xz
nixlib-8691bb57d3c112a5583981ffde9f685d51e904cc.tar.zst
nixlib-8691bb57d3c112a5583981ffde9f685d51e904cc.zip
Merge pull request #36406 from alesguzik/bluez-midi
Bluetooth MIDI support
Diffstat (limited to 'nixos/modules/services/hardware')
-rw-r--r--nixos/modules/services/hardware/bluetooth.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/nixos/modules/services/hardware/bluetooth.nix b/nixos/modules/services/hardware/bluetooth.nix
index 4a8cd86b0b11..d7ca8a431794 100644
--- a/nixos/modules/services/hardware/bluetooth.nix
+++ b/nixos/modules/services/hardware/bluetooth.nix
@@ -3,8 +3,8 @@
 with lib;
 
 let
-  bluez-bluetooth = pkgs.bluez;
   cfg = config.hardware.bluetooth;
+  bluez-bluetooth = cfg.package;
 
 in {
 
@@ -21,6 +21,16 @@ in {
         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 {
         type = types.lines;
         default = "";