Files
nixos-configs/hosts/pinwheel/modules/bluetooth/default.nix
2023-12-09 21:25:15 +01:00

26 lines
402 B
Nix

{ 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;
};
}