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
|
2022-03-23 10:51:59 +00:00
|
|
|
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;
|
|
|
|
};
|
2022-03-23 16:03:58 +00:00
|
|
|
|
|
|
|
systemd.services.wireplumber = {
|
|
|
|
environment = {
|
|
|
|
HOME = "/var/lib/wireplumber";
|
|
|
|
DISPLAY = ":0";
|
|
|
|
};
|
|
|
|
path = [
|
|
|
|
pkgs.dbus
|
|
|
|
];
|
|
|
|
serviceConfig.StateDirectory = "wireplumber";
|
|
|
|
};
|
2021-09-24 14:57:18 +00:00
|
|
|
}
|