pinwheel: Add bluetooth module
This commit is contained in:
25
hosts/pinwheel/modules/bluetooth/default.nix
Normal file
25
hosts/pinwheel/modules/bluetooth/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ lib, config, ... }:
|
||||
let
|
||||
enabled = config.mod.bluetooth.enable;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
mod.bluetooth = {
|
||||
enable = lib.mkEnableOption "enable bluetooth module";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf enabled {
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
General = {
|
||||
Experimental = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.blueman.enable = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user