mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-06 16:57:03 +00:00
30 lines
616 B
Nix
30 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";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|