aboutsummaryrefslogtreecommitdiff
path: root/modules/services/system/bluetooth.nix
blob: a86b5b3b76def27dd031fe1fddfa908652854094 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  pkgs,
  lib,
  config,
  ...
}: let
  cfg = config.collinux.services.bluetooth;
in
  lib.mkIf cfg.enable {
    hardware.bluetooth = {
      enable = true;
      powerOnBoot = true;
    };

    environment.systemPackages = [
      (lib.mkIf cfg.blueman.enable pkgs.blueman)
      (lib.mkIf cfg.bluetuith.enable pkgs.bluetuith)
    ];
  }