add bluetooth option

This commit is contained in:
Aditya 2024-04-11 11:13:35 +05:30
parent 1d63a46291
commit 9177bf6c02
Signed by: aditya
SSH key fingerprint: SHA256:jL1IvWsjjlPtw6HvDIHfXfhO9IkIokNEyIfuFhSdoyU

View file

@ -1,10 +1,19 @@
_: {
hardware.bluetooth = {
enable = true;
settings = {
General = {
Experimental = "true";
Enable = "Source,Sink,Media,Socket";
{
config,
lib,
...
}: {
options = {
bluetooth.enable = lib.mkEnableOption "enable bluetooth";
};
config = lib.mkIf config.bluetooth.enable {
hardware.bluetooth = {
enable = true;
settings = {
General = {
Experimental = "true";
Enable = "Source,Sink,Media,Socket";
};
};
};
};