summaryrefslogtreecommitdiff
path: root/modules/bluetooth.nix
blob: cf7cee5dc0be8fb195c77ebf3619774b5c2748df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ lib, pkgs, config, ... }:

let cfg = config.this.bluetooth;
in
{
  options.this.bluetooth = {
    enable = lib.mkEnableOption "bluetooth";
  };

  config = lib.mkIf cfg.enable {
    hardware.bluetooth.enable = true;
    environment.systemPackages = with pkgs; [
      bluetuith
    ];
  };
}