Files
nixos-config/hosts/common/features/bluetooth.nix
T
Miguel Palhas 3d9c273fd3
CI / lint (push) Successful in 33s
CI / eval (push) Failing after 1m41s
wip
2026-07-30 13:18:47 +01:00

30 lines
738 B
Nix

{ pkgs, ... }:
{
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
settings = {
General = {
Enable = "Source,Sink,Media,Socket";
# Required for LE Audio (BAP): ISO sockets / CIS live behind
# BlueZ's experimental gate. Without this the XM6 falls back to
# classic A2DP, and mic use forces the HSP/HFP downgrade.
Experimental = true;
KernelExperimental = true;
};
};
};
services.blueman.enable = true;
systemd.user.services.mpris-proxy = {
description = "Mpris proxy";
after = [
"network.target"
"sound.target"
];
wantedBy = [ "default.target" ];
serviceConfig.ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
};
}