summaryrefslogtreecommitdiff
path: root/system/bluetooth.nix
blob: dfa6dd14ef0dfc1cb47d0f6001e6ed26cfff8b3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
  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];
  };
}