* Start bluetoothd from udev.
svn path=/nixos/trunk/; revision=17475
This commit is contained in:
parent
647d9ba3b6
commit
373445c410
|
@ -15,24 +15,10 @@ with pkgs.lib;
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|
||||||
jobs = pkgs.lib.singleton
|
|
||||||
{ name = "bluetoothd";
|
|
||||||
|
|
||||||
startOn = "dbus/started";
|
|
||||||
stopOn = "dbus/stop";
|
|
||||||
|
|
||||||
preStart =
|
|
||||||
''
|
|
||||||
mkdir -m 0755 -p /var/lib/bluetooth
|
|
||||||
'';
|
|
||||||
|
|
||||||
exec = "${pkgs.bluez}/sbin/bluetoothd --nodaemon --debug";
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = [pkgs.bluez pkgs.openobex pkgs.obexftp];
|
environment.systemPackages = [pkgs.bluez pkgs.openobex pkgs.obexftp];
|
||||||
|
|
||||||
services.dbus.enable = true;
|
services.udev.packages = [pkgs.bluez];
|
||||||
services.dbus.packages = [pkgs.bluez];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue