mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-21 19:52:52 +00:00
add bluetooth option
This commit is contained in:
parent
1d63a46291
commit
9177bf6c02
1 changed files with 16 additions and 7 deletions
|
@ -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 @@ _: {
|
|||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue