2020-12-04 16:54:20 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
users.extraUsers.gebner.extraGroups = [ "bluetooth" ];
|
|
|
|
|
2021-04-10 18:00:11 +00:00
|
|
|
security.rtkit.enable = true;
|
2020-12-04 16:54:20 +00:00
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
2021-04-10 18:00:11 +00:00
|
|
|
alsa.support32Bit = true;
|
2020-12-04 16:54:20 +00:00
|
|
|
pulse.enable = true;
|
2021-04-10 18:00:11 +00:00
|
|
|
jack.enable = true;
|
|
|
|
|
|
|
|
media-session.config.bluez-monitor.rules = [
|
|
|
|
{
|
|
|
|
# Matches all cards
|
|
|
|
matches = [ { "device.name" = "~bluez_card.*"; } ];
|
|
|
|
actions = {
|
|
|
|
"update-props" = {
|
|
|
|
"bluez5.reconnect-profiles" = [ "hfp_hf" "hsp_hs" "a2dp_sink" ];
|
|
|
|
"bluez5.msbc-support" = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
2020-12-04 16:54:20 +00:00
|
|
|
};
|
|
|
|
|
2020-12-23 19:18:03 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
pulseaudio
|
|
|
|
alsaUtils
|
|
|
|
carla
|
2020-12-26 11:12:23 +00:00
|
|
|
qjackctl
|
|
|
|
pipewire.lib
|
2020-12-23 19:18:03 +00:00
|
|
|
];
|
|
|
|
|
2020-12-04 16:54:20 +00:00
|
|
|
}
|