1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-03 15:41:02 +01:00
home-manager/modules/services/blueman-applet.nix
Austin Horstman 82ee14ff60
treewide: remove with lib (#6871)
Remove from services.
2025-04-21 11:00:59 -05:00

50 lines
1.1 KiB
Nix

{
config,
lib,
pkgs,
...
}:
{
options = {
services.blueman-applet = {
enable = lib.mkEnableOption "" // {
description = ''
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 = lib.mkIf config.services.blueman-applet.enable {
assertions = [
(lib.hm.assertions.assertPlatform "services.blueman-applet" pkgs lib.platforms.linux)
];
systemd.user.services.blueman-applet = {
Unit = {
Description = "Blueman applet";
Requires = [ "tray.target" ];
After = [
"graphical-session.target"
"tray.target"
];
PartOf = [ "graphical-session.target" ];
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.blueman}/bin/blueman-applet";
};
};
};
}