Compare commits

...

1 commit

Author SHA1 Message Date
ItsDrike e84f91507a
Add bluetooth module 2024-06-09 16:34:39 +02:00
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
];
}