nix/module/Bluetooth.nix

18 lines
295 B
Nix

{
config,
lib,
...
}: let
cfg = config.module.bluetooth;
in {
options.module.bluetooth.enable = lib.mkEnableOption "the bluetooth support.";
config = lib.mkIf cfg.enable {
services.blueman.enable = true;
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
};
};
}