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,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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue