2023-07-30 23:47:30 +02:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2023-09-08 16:10:15 +02:00
|
|
|
hardware.pulseaudio.enable = false;
|
|
|
|
|
2023-07-30 23:52:23 +02:00
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
pulse.enable = true;
|
2023-08-10 23:48:34 +02:00
|
|
|
wireplumber.enable = true;
|
2023-07-30 23:47:30 +02:00
|
|
|
};
|
|
|
|
|
2023-08-03 11:18:49 +02:00
|
|
|
security.rtkit.enable = true;
|
|
|
|
|
2023-10-03 19:22:24 +02:00
|
|
|
#environment.etc = let
|
|
|
|
# json = pkgs.formats.json {};
|
|
|
|
# rate = "48000";
|
|
|
|
# quantum = "256";
|
|
|
|
#in {
|
|
|
|
# "pipewire/pipewire.conf.d/92-low-latency.conf".text = ''
|
|
|
|
# context.properties = {
|
|
|
|
# default.clock.rate = ${rate}
|
|
|
|
# default.clock.quantum = ${quantum}
|
|
|
|
# default.clock.min-quantum = ${quantum}
|
|
|
|
# default.clock.max-quantum = ${quantum}
|
|
|
|
# }
|
|
|
|
# '';
|
|
|
|
# "pipewire/pipewire-pulse.d/92-low-latency.conf".source = json.generate "92-low-latency.conf" {
|
|
|
|
# context.modules = [
|
|
|
|
# {
|
|
|
|
# name = "libpipewire-module-protocol-pulse";
|
|
|
|
# args.pulse = {
|
|
|
|
# min.req = "${quantum}/${rate}";
|
|
|
|
# default.req = "${quantum}/${rate}";
|
|
|
|
# max.req = "${quantum}/${rate}";
|
|
|
|
# min.quantum = "${quantum}/${rate}";
|
|
|
|
# max.quantum = "${quantum}/${rate}";
|
|
|
|
# };
|
|
|
|
# }
|
|
|
|
# ];
|
|
|
|
# stream.properties = {
|
|
|
|
# node.latency = "${quantum}/${rate}";
|
|
|
|
# resample.quality = 1;
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
#};
|
2023-07-30 23:47:30 +02:00
|
|
|
}
|