mirror of
https://github.com/nix-community/home-manager
synced 2024-11-19 01:29:46 +01:00
9e4a73c25e
`nix-doc-munge` can't tell what's going on with this pattern, so I just handled them all manually.
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
options = {
|
|
services.blueman-applet = {
|
|
enable = mkEnableOption (lib.mdDoc "") // {
|
|
description = lib.mdDoc ''
|
|
Whether to enable the Blueman applet.
|
|
|
|
Note that for the applet to work, the `blueman` service should
|
|
be enabled system-wide. You can enable it in the system
|
|
configuration using
|
|
```nix
|
|
services.blueman.enable = true;
|
|
```
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf config.services.blueman-applet.enable {
|
|
assertions = [
|
|
(hm.assertions.assertPlatform "services.blueman-applet" pkgs
|
|
platforms.linux)
|
|
];
|
|
|
|
systemd.user.services.blueman-applet = {
|
|
Unit = {
|
|
Description = "Blueman applet";
|
|
Requires = [ "tray.target" ];
|
|
After = [ "graphical-session-pre.target" "tray.target" ];
|
|
PartOf = [ "graphical-session.target" ];
|
|
};
|
|
|
|
Install = { WantedBy = [ "graphical-session.target" ]; };
|
|
|
|
Service = { ExecStart = "${pkgs.blueman}/bin/blueman-applet"; };
|
|
};
|
|
};
|
|
}
|