<commit_before>{ 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";
        };
    };
  };
}<commit_msg>blueman-applet: add note about required system service<commit_after>{ config, lib, pkgs, ... }:

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 ];
      '';
    };
  };

  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";
        };
    };
  };
}
{'fraction_non_alphanumeric': 0.13146682897139378, 'fraction_numerical': 0.0, 'mean_word_length': 1.9836660617059891, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3813113', 'n_tokens_mistral': 530, 'n_tokens_neox': 516, 'n_words': 101}