voidconf/modules/bluetooth.nix
2025-02-26 11:36:29 +01:00

29 lines
394 B
Nix

{
pkgs,
lib,
config,
...
}:
with lib;
let
cfg = config.voidconf.bluetooth;
in
{
options.voidconf.bluetooth = {
enable = mkEnableOption "Enables bluetooth tools";
};
config = mkIf cfg.enable {
hardware.bluetooth = {
enable = true;
};
services.blueman = {
enable = true;
};
environment.systemPackages = with pkgs; [
bluez
];
};
}