diff --git a/modules/services/hardware/bluetooth.nix b/modules/services/hardware/bluetooth.nix index 0efd6710412..2359ef73e0e 100644 --- a/modules/services/hardware/bluetooth.nix +++ b/modules/services/hardware/bluetooth.nix @@ -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]; + }; }