nixos/modules/hardware/bluetooth/default.nix
2026-01-03 17:07:27 +01:00

28 lines
530 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.hardware.bluetooth;
in
{
options.my.hardware.bluetooth = {
enable = lib.mkEnableOption "bluetooth configuration";
};
config = lib.mkIf cfg.enable {
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
settings = {
General = {
Experimental = true; # show battery percentages
};
};
};
services.blueman.enable = true;
environment.systemPackages = with pkgs; [ sony-headphones-client ];
};
}