Files
nixos-blueprint/modules/nixos/system/wireless/bluetooth.nix
unexplrd ef9864e6cd aper
2025-02-07 19:12:52 +02:00

21 lines
416 B
Nix

{
lib,
config,
...
}:
with lib; let
cfg = config.wireless.bluetooth;
in {
options = {
wireless.bluetooth = {
enable = mkEnableOption "enable bluetooth";
enableBlueman = mkEnableOption "enable bluetooth manager";
};
};
config = mkIf cfg.enable {
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
services.blueman.enable = cfg.enableBlueman;
};
}