Add bluetooth module

This commit is contained in:
ItsDrike 2024-06-09 16:34:39 +02:00
parent fb603938c1
commit 953334c841
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{
config,
pkgs,
lib,
...
}: let
inherit (lib) mkIf;
sys = config.myOptions.system.bluetooth;
in {
config = mkIf sys.enable {
hardware.bluetooth = {
enable = true;
package = pkgs.bluez5-experimental;
#hsphfpd.enable = true;
powerOnBoot = true;
disabledPlugins = ["sap"];
settings = {
General = {
JustWorksRepairing = "always";
MultiProfile = "multiple";
Experimental = true;
};
};
};
# https://nixos.wiki/wiki/Bluetooth
services.blueman.enable = true;
};
}

View file

@ -11,6 +11,7 @@ _: {
./programs.nix
./system.nix
./network.nix
./bluetooth.nix
./localisation.nix
];
}