mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
26 lines
426 B
Nix
26 lines
426 B
Nix
|
# blueman service
|
||
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
let
|
||
|
cfg = config.services.blueman;
|
||
|
in {
|
||
|
###### interface
|
||
|
options = {
|
||
|
services.blueman = {
|
||
|
enable = mkEnableOption (lib.mdDoc "blueman");
|
||
|
};
|
||
|
};
|
||
|
|
||
|
###### implementation
|
||
|
config = mkIf cfg.enable {
|
||
|
|
||
|
environment.systemPackages = [ pkgs.blueman ];
|
||
|
|
||
|
services.dbus.packages = [ pkgs.blueman ];
|
||
|
|
||
|
systemd.packages = [ pkgs.blueman ];
|
||
|
};
|
||
|
}
|