aboutsummaryrefslogtreecommitdiff
path: root/nixos/bluetooth.nix
blob: ebe6b88053a227ebfc7b5fee72fa5fc06d4233d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ config, lib, pkgs, ... }:
let
  cfg = config.nixos.bluetooth;
  inherit (lib) types mkOption;
in
{
  options.nixos.bluetooth = {
    enable = mkOption {
      type = types.bool;
      default = true;
      description = "enable bluetooth support";
    };
  };

  config = lib.mkIf cfg.enable {
    hardware.bluetooth.enable = true;
    services.blueman.enable = true;
  };
}