{ pkgs, ... }:
# https://discourse.nixos.org/t/bluetooth-troubles/38940/11
{
  hardware.bluetooth = {
    enable = true;
    powerOnBoot = true;
    package = pkgs.bluez5-experimental;
    settings = {
      General.Enable = "Source,Sink,Media,Socket";
      Policy.AutoEnable = "true";
    };
  };
  services.blueman.enable = true;

  environment.systemPackages = with pkgs; [
    bluez5-experimental
    bluez-tools
    bluez-alsa
    bluetuith
  ];
}
