mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-25 07:54:34 +00:00
Add bluetooth module
This commit is contained in:
parent
fb603938c1
commit
953334c841
30
system/shared/bluetooth.nix
Normal file
30
system/shared/bluetooth.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -11,6 +11,7 @@ _: {
|
|||
./programs.nix
|
||||
./system.nix
|
||||
./network.nix
|
||||
./bluetooth.nix
|
||||
./localisation.nix
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue