1
0
Fork 0
nix-configuration/modules/base/bluetooth.nix

38 lines
611 B
Nix
Raw Normal View History

{
lib,
config,
pkgs,
...
}:
2024-02-29 09:53:34 -05:00
let
cfg = config.host.ui.bluetooth;
2024-02-29 09:53:34 -05:00
in
with lib;
{
options = {
host.ui.bluetooth = {
enable = mkEnableOption (mdDoc "Enables bluetooth");
};
};
2024-02-29 09:53:34 -05:00
config = mkIf cfg.enable {
# Set up Bluetooth
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
settings = {
General = {
Enable = "Source,Sink,Media,Socket";
Experimental = true;
KernelExperimental = true;
};
};
};
2024-02-29 09:53:34 -05:00
# Add Bluetooth LE audio support
environment.systemPackages = with pkgs; [ liblc3 ];
};
}