27 lines
392 B
Nix
27 lines
392 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
with lib;
|
|
let
|
|
cfg = config.voidconf.bluetooth;
|
|
in
|
|
{
|
|
options.voidconf.bluetooth = {
|
|
enable = mkEnableOption "Enables bluetooth tools";
|
|
};
|
|
config = mkIf cfg.enable {
|
|
hardware.bleutooth = {
|
|
enable = true;
|
|
};
|
|
services.blueman = {
|
|
enable = true;
|
|
};
|
|
environment.systemPackages = with pkgs; [
|
|
bluez
|
|
];
|
|
};
|
|
}
|