From aaffb21f25098a398564f16daf1ac311c8f1b189 Mon Sep 17 00:00:00 2001 From: Evgeny Egorochkin Date: Sun, 10 Feb 2013 20:30:02 +0200 Subject: [PATCH] bluetooth: add the systemd unit needed for activation by recent bluez versions --- modules/services/hardware/bluetooth.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/services/hardware/bluetooth.nix b/modules/services/hardware/bluetooth.nix index 06ed9ef70a4..6bc0ad0bf77 100644 --- a/modules/services/hardware/bluetooth.nix +++ b/modules/services/hardware/bluetooth.nix @@ -26,6 +26,16 @@ with pkgs.lib; services.dbus.packages = [ pkgs.bluez ]; + systemd.services."dbus-org.bluez" = { + description = "Bluetooth service"; + serviceConfig = { + Type = "dbus"; + BusName = "org.bluez"; + ExecStart = "${pkgs.bluez}/sbin/bluetoothd -n"; + }; + wantedBy = [ "bluetooth.target" ]; + }; + }; }