1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-25 03:09:47 +01:00
home-manager/modules/services/blueman-applet.nix
2017-09-12 16:44:16 +02:00

29 lines
616 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
options = {
services.blueman-applet = {
enable = mkEnableOption "Blueman applet";
};
};
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";
};
};
};
}