Move bluetooth to hardware dir

This commit is contained in:
ItsDrike 2024-06-22 07:42:40 +02:00
parent 702c4a00df
commit 827b355c5e
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
3 changed files with 1 additions and 1 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

@ -3,6 +3,7 @@ _: {
./cpu
./gpu
./tpm.nix
./bluetooth.nix
./generic.nix
];
}