nix/nixos/bluetooth.nix
2025-03-03 23:10:07 -06:00

21 lines
332 B
Nix

{
config,
pkgs,
lib,
...
}:
{
options.custom = with lib; {
bluetooth = {
enable = mkEnableOption "Enable bluetooth";
};
};
config = lib.mkIf config.custom.bluetooth.enable {
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
};
services.blueman.enable = true;
};
}