mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
* 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 = {
|
||||
|
||||
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];
|
||||
|
||||
services.dbus.enable = true;
|
||||
services.dbus.packages = [pkgs.bluez];
|
||||
services.udev.packages = [pkgs.bluez];
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user