19 lines
294 B
Nix
19 lines
294 B
Nix
{ 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;
|
|
};
|
|
};
|
|
}
|