41 lines
965 B
Nix
41 lines
965 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
environment.systemPackages = lib.mkAfter (with pkgs; [
|
|
pwvucontrol
|
|
]);
|
|
security.rtkit.enable = true;
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
raopOpenFirewall = true;
|
|
wireplumber.extraConfig."10-bluez" = {
|
|
"monitor.bluez.properties" = {
|
|
"bluez5.enable-sbc-xq" = true;
|
|
"bluez5.enable-msbc" = true;
|
|
"bluez5.enable-hw-volume" = true;
|
|
"bluez5.roles" = [
|
|
"hsp_hs"
|
|
"hsp_ag"
|
|
"hfp_hf"
|
|
"hfp_ag"
|
|
];
|
|
};
|
|
};
|
|
extraConfig.pipewire = {
|
|
"10-airplay" = {
|
|
"context.modules" = [
|
|
{
|
|
name = "libpipewire-module-raop-discover";
|
|
# increase the buffer size if you get dropouts/glitches
|
|
# args = {
|
|
# "raop.latency.ms" = 500;
|
|
# };
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|