This repository has no description
795 B
35 lines
1{ config, lib, pkgs, ... }:
2# TODO test `alsactl init` after suspend to reinit mic
3{
4 security.rtkit.enable = true;
5
6 hardware.bluetooth = {
7 enable = true;
8 powerOnBoot = true;
9 };
10
11 environment.systemPackages = with pkgs; [
12 alsa-utils
13 pulseaudio
14 ponymix
15 ];
16
17 services.pipewire = {
18 enable = true;
19 systemWide = true;
20 alsa.enable = true;
21 alsa.support32Bit = true;
22 pulse.enable = true;
23 jack.enable = true;
24 };
25 environment.etc = {
26 "wireplumber/bluetooth.lua.d/51-bluez-config.lua".text = ''
27 bluez_monitor.properties = {
28 ["bluez5.enable-sbc-xq"] = true,
29 ["bluez5.enable-msbc"] = true,
30 ["bluez5.enable-hw-volume"] = true,
31 ["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]"
32 }
33 '';
34 };
35}