mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
30 lines
508 B
Nix
30 lines
508 B
Nix
![]() |
{
|
||
|
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;
|
||
|
}
|