1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-29 01:48:31 +02:00
home-manager/modules/services/blueman-applet.nix

38 lines
889 B
Nix
Raw Normal View History

2017-09-12 16:26:52 +02:00
{ config, lib, pkgs, ... }:
with lib;
{
options = {
services.blueman-applet = {
enable = mkEnableOption ''
Blueman applet.
Note, for the applet to work, 'blueman' service should be enabled system-wide
since it requires running 'blueman-mechanism' service activated.
You can enable it in system configuration:
services.blueman.enable = true;
'';
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";
};
};
};
}