mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-09 22:19:42 +00:00
Add bluetooth module
This commit is contained in:
parent
fb603938c1
commit
e84f91507a
32
system/shared/bluetooth.nix
Normal file
32
system/shared/bluetooth.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -11,6 +11,7 @@ _: {
|
|||
./programs.nix
|
||||
./system.nix
|
||||
./network.nix
|
||||
./bluetooth.nix
|
||||
./localisation.nix
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue