fork/home-manager
git clone https://git.julia.blue/fork/home-manager
75790441
master
1{ config , lib , pkgs , ...} : 2 3with lib ; 4 5{ 6options = { 7services . blueman-applet = { 8enable = mkEnableOption "" // { 9description = '' 10Whether to enable the Blueman applet. 11 12Note that for the applet to work, the `blueman` service should 13be enabled system-wide. You can enable it in the system 14configuration using 15```nix 16services.blueman.enable = true; 17``` 18'' ; 19}; 20}; 21}; 22 23config = mkIf config . services . blueman-applet . enable { 24assertions = [ 25( hm . assertions . assertPlatform "services.blueman-applet" pkgs 26platforms . linux ) 27]; 28 29systemd . user . services . blueman-applet = { 30Unit = { 31Description = "Blueman applet" ; 32Requires = [ "tray.target" ]; 33After = [ "graphical-session-pre.target" "tray.target" ]; 34PartOf = [ "graphical-session.target" ]; 35}; 36 37Install = { WantedBy = [ "graphical-session.target" ]; }; 38 39Service = { ExecStart = " ${ pkgs . blueman } /bin/blueman-applet" ; }; 40}; 41}; 42}