nixos/modules/hardware/bluetooth/default.nix

26 lines
529 B
Nix
Raw Permalink Normal View History

2023-03-19 14:27:51 +01:00
{ config, lib, pkgs, ... }:
let
cfg = config.my.hardware.bluetooth;
in
{
options.my.hardware.bluetooth = with lib; {
enable = mkEnableOption "bluetooth configuration";
};
config = lib.mkIf cfg.enable {
hardware.bluetooth = {
enable = true;
2023-11-13 20:21:58 +01:00
package = pkgs.bluez;
2023-03-19 14:27:51 +01:00
settings = {
General = {
Enable = "Source,Sink,Media,Socket";
};
};
};
services.blueman.enable = true;
environment.systemPackages = with pkgs; [
sony-headphones-client
];
};
}