nix_config/sys/modules/bluetooth.nix

30 lines
462 B
Nix
Raw Normal View History

2024-12-03 04:19:22 +01:00
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.local.sys.bluetooth;
in {
options.local.sys.bluetooth = {
enable = mkEnableOption "bluetooth settings";
};
config = mkIf cfg.enable {
hardware = {
bluetooth = {
enable = true;
settings = {
General = {
Enable = "Source,Sink,Media,Socket";
};
};
};
};
services = {
blueman.enable = true;
};
};
}