2024-04-07 17:08:48 -07:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
2024-11-28 23:48:40 -08:00
|
|
|
options.bluetooth = {
|
|
|
|
|
enable = lib.mkEnableOption "Enables Bluetooth with blueman";
|
2024-04-07 17:08:48 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
config = lib.mkIf config.bluetooth.enable {
|
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
|
hardware.bluetooth.powerOnBoot = true;
|
|
|
|
|
services.blueman.enable = true;
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
blueman
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
}
|