1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-30 23:19:47 +01:00
home-manager/modules/services/blueman-applet.nix
Cabia Rangris 24c6d8dfc5
blueman: update advice for removing error message
The old method for hiding the error no longer works in NixOS 19.09,
and ends up breaking blueman-applet entirely. Enable the NixOS service
instead.

Pull request #950

(cherry picked from commit a5d3d6f665)
2019-12-28 09:46:23 +01:00

37 lines
889 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
options = {
services.blueman-applet = {
enable = mkEnableOption ''
Blueman applet.
Note, for the applet to work, 'blueman' service should be enabled system-wide
since it requires running 'blueman-mechanism' service activated.
You can enable it in system configuration:
services.blueman.enable = true;
'';
};
};
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";
};
};
};
}