mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
Update pipewire.nix
This commit is contained in:
1 parent
7a34ae4cc8
commit
edceefd595
1 file changed
+19
-19
@@ -3,35 +3,35 @@
|
|||||||
{
|
{
|
||||||
services.pulseaudio.enable = false;
|
services.pulseaudio.enable = false;
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
alsa.support32Bit = true;
|
alsa.support32Bit = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
|
wireplumber.enable = true;
|
||||||
wireplumber = {
|
extraConfig.pipewire."10-realtime" = {
|
||||||
enable = true;
|
"context.modules" = [
|
||||||
extraConfig."51-no-mic-monitor" = {
|
{
|
||||||
"monitor.alsa.rules" = [
|
name = "libpipewire-module-rt";
|
||||||
{
|
args = {
|
||||||
matches = [ { "node.name" = "~alsa_input.*"; } ];
|
"nice.level" = -15;
|
||||||
actions = {
|
"rt.prio" = 88;
|
||||||
"update-props" = {
|
"rt.time.soft" = 200000;
|
||||||
"stream.dont-remix" = true;
|
"rt.time.hard" = 400000;
|
||||||
};
|
};
|
||||||
};
|
flags = [
|
||||||
}
|
"ifexists"
|
||||||
];
|
"nofail"
|
||||||
};
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig.pipewire."92-quantum" = {
|
extraConfig.pipewire."92-quantum" = {
|
||||||
"context.properties" = {
|
"context.properties" = {
|
||||||
"default.clock.rate" = 48000;
|
"default.clock.rate" = 48000;
|
||||||
"default.clock.allowed-rates" = [ 48000 ];
|
"default.clock.allowed-rates" = [ 48000 ];
|
||||||
"default.clock.quantum" = 768;
|
"default.clock.quantum" = 1024;
|
||||||
"default.clock.min-quantum" = 512;
|
"default.clock.min-quantum" = 1024;
|
||||||
"default.clock.max-quantum" = 1024;
|
"default.clock.max-quantum" = 1024;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user