mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-29 11:10:42 +00:00
Move bluetooth to hardware dir
This commit is contained in:
parent
702c4a00df
commit
827b355c5e
3 changed files with 1 additions and 1 deletions
30
system/shared/hardware/bluetooth.nix
Normal file
30
system/shared/hardware/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;
|
||||
};
|
||||
}
|
|
@ -3,6 +3,7 @@ _: {
|
|||
./cpu
|
||||
./gpu
|
||||
./tpm.nix
|
||||
./bluetooth.nix
|
||||
./generic.nix
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue