nixfleet/modules/bluetooth/default.nix
2025-01-09 11:17:06 +01:00

25 lines
472 B
Nix

{
pkgs,
config,
lib,
...
}:
{
services.blueman.enable = true;
hardware.bluetooth = {
enable = lib.mkDefault true;
settings = {
General = {
Name = config.networking.hostName;
ControllerMode = "dual";
FastConnectable = "true";
Experimental = "true";
};
Policy = {
AutoEnable = "true";
};
};
};
services.dbus.packages = with pkgs; [ blueman ];
ccr.extraGroups = [ "bluetooth" ];
}