2019-09-03 09:26:37 +01:00
|
|
|
# blueman service
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.blueman;
|
|
|
|
in {
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.blueman = {
|
2022-08-28 20:18:44 +01:00
|
|
|
enable = mkEnableOption (lib.mdDoc "blueman");
|
2019-09-03 09:26:37 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
|
|
|
|
environment.systemPackages = [ pkgs.blueman ];
|
|
|
|
|
|
|
|
services.dbus.packages = [ pkgs.blueman ];
|
|
|
|
|
|
|
|
systemd.packages = [ pkgs.blueman ];
|
|
|
|
};
|
|
|
|
}
|