2331a5140d
* Refactored some other modules (dbus, hal). svn path=/nixos/trunk/; revision=16652
39 lines
573 B
Nix
39 lines
573 B
Nix
{pkgs, config, ...}:
|
|
|
|
with pkgs.lib;
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = {
|
|
|
|
jobs = pkgs.lib.singleton
|
|
{ name = "bluetoothd";
|
|
|
|
startOn = "dbus";
|
|
stopOn = "dbus";
|
|
|
|
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];
|
|
};
|
|
|
|
}
|