2017-09-12 16:26:52 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
services.blueman-applet = {
|
2017-10-11 13:05:47 +02:00
|
|
|
enable = mkEnableOption ''
|
|
|
|
Blueman applet.
|
|
|
|
|
|
|
|
Note, for the applet to work, 'blueman' package should also be installed system-wide
|
|
|
|
since it requires running 'blueman-mechanism' service activated via dbus.
|
|
|
|
You can add it to the dbus packages in system configuration:
|
|
|
|
|
|
|
|
services.dbus.packages = [ pkgs.blueman ];
|
|
|
|
'';
|
2017-09-12 16:26:52 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf config.services.blueman-applet.enable {
|
|
|
|
systemd.user.services.blueman-applet = {
|
|
|
|
Unit = {
|
|
|
|
Description = "Blueman applet";
|
|
|
|
After = [ "graphical-session-pre.target" ];
|
|
|
|
PartOf = [ "graphical-session.target" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
Install = {
|
|
|
|
WantedBy = [ "graphical-session.target" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
Service = {
|
|
|
|
ExecStart = "${pkgs.blueman}/bin/blueman-applet";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|