2020-04-24 23:36:52 +00:00
|
|
|
# blueman service
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.blueman;
|
|
|
|
in {
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.blueman = {
|
2024-04-21 15:54:59 +00:00
|
|
|
enable = mkEnableOption "blueman, a bluetooth manager";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
|
|
|
|
environment.systemPackages = [ pkgs.blueman ];
|
|
|
|
|
|
|
|
services.dbus.packages = [ pkgs.blueman ];
|
|
|
|
|
|
|
|
systemd.packages = [ pkgs.blueman ];
|
|
|
|
};
|
|
|
|
}
|