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,4 +1,12 @@
_: {
{
config,
lib,
...
}: {
options = {
bluetooth.enable = lib.mkEnableOption "enable bluetooth";
};
config = lib.mkIf config.bluetooth.enable {
hardware.bluetooth = {
enable = true;
settings = {
@ -8,4 +16,5 @@ _: {
};
};
};
};
}