diff options
Diffstat (limited to 'infra/libkookie/home-manager/modules/services/blueman-applet.nix')
-rw-r--r-- | infra/libkookie/home-manager/modules/services/blueman-applet.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/infra/libkookie/home-manager/modules/services/blueman-applet.nix b/infra/libkookie/home-manager/modules/services/blueman-applet.nix new file mode 100644 index 000000000000..5a57acccc276 --- /dev/null +++ b/infra/libkookie/home-manager/modules/services/blueman-applet.nix @@ -0,0 +1,36 @@ +{ 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"; }; + }; + }; +} |