summaryrefslogtreecommitdiff
path: root/system/bluetooth.nix
blob: 69b286f75edee6a642b8a184ae63cf867c0cae45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  lib,
  config,
  pkgs,
  ...
}: let
  inherit (lib) mkIf;
  cfg = config.bluetooth;
in {
  config = mkIf cfg.enable {
    hardware.bluetooth.enable = true;
    services.blueman.enable = true;
    users.groups.bluetooth.members = [config.user];

    hardware.firmware = [pkgs.broadcom-bt-firmware];
    unfreePackages = ["broadcom-bt-firmware"];
  };
}