ooknet/system/modules/hardware/bluetooth/default.nix

29 lines
595 B
Nix

{ config, lib, pkgs, ... }:
let
cfg = config.systemModules.hardware.bluetooth;
inherit (lib) mkIf mkEnableOption;
in
{
options.systemModules.hardware.bluetooth = {
enable = mkEnableOption "Enable bluetooth module";
};
config = mkIf cfg.enable {
hardware.bluetooth = {
enable = true;
package = pkgs.bluez5-experimental;
};
environment.systemPackages = with pkgs; [
galaxy-buds-client
live-buds-cli
bluetuith
];
# https://github.com/NixOS/nixpkgs/issues/114222
systemd.user.services.telephony_client.enable = false;
};
}