2024-12-20 13:11:42 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2024-10-26 18:40:27 +00:00
|
|
|
services = {
|
|
|
|
pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
jack.enable = true;
|
|
|
|
|
|
|
|
extraConfig = {
|
|
|
|
pipewire."92-low-latency" = {
|
|
|
|
"context.properties" = {
|
|
|
|
"default.clock.rate" = 48000;
|
|
|
|
"default.clock.quantum" = 32;
|
|
|
|
"default.clock.min-quantum" = 32;
|
2024-12-16 16:17:38 +00:00
|
|
|
"default.clock.max-quantum" = 64;
|
2024-10-26 18:40:27 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
pipewire-pulse."92-low-latency" = {
|
2024-12-20 13:11:42 +00:00
|
|
|
"context.properties" = [
|
|
|
|
{
|
|
|
|
name = "libpipewire-module-protocol-pulse";
|
|
|
|
args = {};
|
|
|
|
}
|
|
|
|
];
|
2024-10-26 18:40:27 +00:00
|
|
|
"pulse.properties" = {
|
|
|
|
"pulse.min.req" = "32/48000";
|
|
|
|
"pulse.default.req" = "32/48000";
|
|
|
|
"pulse.max.req" = "32/48000";
|
|
|
|
"pulse.min.quantum" = "32/48000";
|
|
|
|
"pulse.max.quantum" = "32/48000";
|
|
|
|
};
|
|
|
|
"stream.properties" = {
|
|
|
|
"node.latency" = "32/48000";
|
|
|
|
"resample.quality" = 1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|