nix/module/Bluetooth.nix
2024-11-06 01:07:30 +03:00

18 lines
311 B
Nix

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