summaryrefslogtreecommitdiff
path: root/modules/bluetooth.nix
blob: 1705db624f74c46f3b9096089d6f0cde90c19e04 (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.os.srv.bluetooth;
in
{
  options.os.srv.bluetooth.enable = lib.mkEnableOption "enables bluetooth support";
  config = lib.mkIf cfg.enable {
    hardware.bluetooth = {
      enable = true;
      powerOnBoot = true;
    };
    environment.systemPackages = [ pkgs.bluetui ];
  };
}