nixos-config/modules/nixos/bluetooth.nix

19 lines
294 B
Nix
Raw Permalink Normal View History

2025-05-13 14:26:22 +02:00
{ lib, config, ... }:
with lib;
let
cfg = config.modules.bluetooth;
in
{
options.modules.bluetooth = {
enable = mkEnableOption "bluetooth";
};
config = mkIf cfg.enable {
# Enable bluetooth
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
};
};
}