mirror of
https://github.com/nix-community/home-manager
synced 2024-12-05 01:19:46 +01:00
94c0367dd8
In particular use proper DocBook format in description.
(cherry picked from commit 8d14ffbe88
)
40 lines
1,003 B
Nix
40 lines
1,003 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
options = {
|
|
services.blueman-applet = {
|
|
enable = mkEnableOption "" // {
|
|
description = ''
|
|
Whether to enable the Blueman applet.
|
|
</para><para>
|
|
Note, for the applet to work, the 'blueman' service should
|
|
be enabled system-wide. You can enable it in the system
|
|
configuration using
|
|
<programlisting language="nix">
|
|
services.blueman.enable = true;
|
|
</programlisting>
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
|
|
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";
|
|
};
|
|
};
|
|
};
|
|
}
|