feat(nixos): add bluetooth module
This commit is contained in:
parent
ce83834ef4
commit
e097d3e688
1 changed files with 16 additions and 0 deletions
16
nix/modules/options/bluetooth.nix
Normal file
16
nix/modules/options/bluetooth.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ lib, ... }:
|
||||
let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in
|
||||
{
|
||||
flake.modules.nixos.default = {
|
||||
options.bluetooth.enable = mkEnableOption "";
|
||||
config = {
|
||||
persistDirs = [ "/var/lib/bluetooth" ];
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
settings.General.Experimental = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue