stockholm/lass/2configs/pipewire.nix

36 lines
795 B
Nix
Raw Normal View History

2021-09-24 14:57:18 +00:00
{ config, lib, pkgs, ... }:
# TODO test `alsactl init` after suspend to reinit mic
{
security.rtkit.enable = true;
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
};
environment.systemPackages = with pkgs; [
2022-11-01 12:03:20 +00:00
alsa-utils
pulseaudio
2021-10-25 18:25:19 +00:00
ponymix
2021-09-24 14:57:18 +00:00
];
services.pipewire = {
enable = true;
2022-01-24 13:34:48 +00:00
systemWide = true;
2021-09-24 14:57:18 +00:00
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
environment.etc = {
"wireplumber/bluetooth.lua.d/51-bluez-config.lua".text = ''
bluez_monitor.properties = {
["bluez5.enable-sbc-xq"] = true,
["bluez5.enable-msbc"] = true,
["bluez5.enable-hw-volume"] = true,
["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]"
}
'';
};
2021-09-24 14:57:18 +00:00
}