{ pkgs, lib, config, ... }: with lib; let cfg = config.voiconf.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 ]; }; }