nix/module/Bluetooth.nix

18 lines
311 B
Nix
Raw Normal View History

{
2024-11-04 04:37:29 +03:00
config,
lib,
...
}: let
cfg = config.module.desktop.bluetooth;
in {
options.module.desktop.bluetooth.enable = lib.mkEnableOption "the bluetooth support.";
2024-06-25 04:04:39 +03:00
2024-11-04 04:37:29 +03:00
config = lib.mkIf cfg.enable {
services.blueman.enable = true;
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
};
};
2024-03-28 12:01:06 +03:00
}