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

38 lines
632 B
Nix
Raw Permalink Normal View History

# Configures bluetooth.
{
lib,
config,
pkgs,
...
}:
2024-02-29 09:53:34 -05:00
let
cfg = config.aux.system.bluetooth;
2024-02-29 09:53:34 -05:00
in
{
options = {
aux.system.bluetooth = {
2024-09-08 11:58:56 -04:00
enable = lib.mkEnableOption "Enables bluetooth.";
};
};
2024-02-29 09:53:34 -05:00
config = lib.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 ];
};
}