dotfiles/modules/nixos/hardware/bluetooth/default.nix
2025-03-29 23:08:26 -05:00

29 lines
508 B
Nix
Executable file

{
pkgs,
config,
flake,
...
}:
let
inherit (flake.config.machines) devices;
hostname = config.networking.hostName;
in
{
hardware = {
bluetooth = {
enable = true;
package = pkgs.bluez;
powerOnBoot = true;
settings = {
General = {
Experimental = true;
Disable = "Headset";
};
};
disabledPlugins = [
"sap"
];
};
};
services.blueman.enable = if hostname == devices.deimos.name then false else true;
}