Add bluetooth module

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

View file

@ -0,0 +1,32 @@
{
config,
pkgs,
lib,
...
}: let
inherit (lib) mkIf;
sys = config.myOptions.system.bluetooth;
in {
config = mkIf sys.enable {
modules.system.boot.extraKernelParams = ["btusb"];
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
];
}