{ lib, config, pkgs, ... }: with lib; let cfg = config.roles.bluetooth; in { options.roles.bluetooth = { enable = mkEnableOption "Enable the bluetooth role"; }; config = { hardware.bluetooth.enable = true; hardware.bluetooth.powerOnBoot = true; hardware.bluetooth.settings = { General = { Enable = "Source,Sink,Media,Socket"; }; }; services.blueman.enable = true; hardware.pulseaudio.package = pkgs.pulseaudioFull; hardware.pulseaudio.extraConfig = " load-module module-combine-sink load-module module-switch-on-connect "; }; }