diff options
Diffstat (limited to 'home-manager/modules/services/blueman-applet.nix')
-rw-r--r-- | home-manager/modules/services/blueman-applet.nix | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/home-manager/modules/services/blueman-applet.nix b/home-manager/modules/services/blueman-applet.nix index 186dc7454f9..5a57acccc27 100644 --- a/home-manager/modules/services/blueman-applet.nix +++ b/home-manager/modules/services/blueman-applet.nix @@ -5,33 +5,32 @@ with lib; { options = { services.blueman-applet = { - 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 ]; - ''; + 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" ]; - }; + Unit = { + Description = "Blueman applet"; + After = [ "graphical-session-pre.target" ]; + PartOf = [ "graphical-session.target" ]; + }; - Install = { - WantedBy = [ "graphical-session.target" ]; - }; + Install = { WantedBy = [ "graphical-session.target" ]; }; - Service = { - ExecStart = "${pkgs.blueman}/bin/blueman-applet"; - }; + Service = { ExecStart = "${pkgs.blueman}/bin/blueman-applet"; }; }; }; } |