dotfiles/modules/nixos/hardware/bluetooth/default.nix

19 lines
306 B
Nix
Raw Normal View History

2023-07-14 01:36:01 +00:00
{
config,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption;
2023-07-14 01:36:01 +00:00
cfg = config.aa.hardware.bluetooth;
in {
options.aa.hardware.bluetooth = {
2023-07-14 01:36:01 +00:00
enable = mkEnableOption "bluetooth";
};
config = mkIf cfg.enable {
hardware.bluetooth.enable = true;
services.blueman.enable = true;
};
}