tidied audio.nix
This commit is contained in:
parent
0a3ee3f02a
commit
c8c1ac1f58
1 changed files with 44 additions and 39 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
# # https://nixos.wiki/wiki/Category:Audio
|
## https://nixos.wiki/wiki/Category:Audio
|
||||||
## https://nixos.wiki/PipeWire
|
## https://nixos.wiki/PipeWire
|
||||||
## https://github.com/musnix/musnix
|
## https://github.com/musnix/musnix
|
||||||
## https://nixos.wiki/wiki/Audio_production
|
## https://nixos.wiki/wiki/Audio_production
|
||||||
|
|
@ -53,56 +53,61 @@
|
||||||
## Musnix for audio production
|
## Musnix for audio production
|
||||||
musnix = {
|
musnix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
rtcqs = { enable = true; };
|
rtcqs.enable = true;
|
||||||
rtirq = { enable = true; };
|
rtirq.enable = true;
|
||||||
kernel = { realtime = true; };
|
kernel.realtime = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
## Using pipewire baybee
|
## Using pipewire baybee
|
||||||
services.pipewire = {
|
services = {
|
||||||
enable = true;
|
|
||||||
jack.enable = true;
|
pulseaudio.enable = false;
|
||||||
pulse.enable = true;
|
|
||||||
alsa = {
|
pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
support32Bit = true;
|
jack.enable = true;
|
||||||
};
|
pulse.enable = true;
|
||||||
|
alsa = {
|
||||||
## Low latency config
|
enable = true;
|
||||||
extraConfig = {
|
support32Bit = true;
|
||||||
|
|
||||||
pipewire."92-low-latency" = {
|
|
||||||
"context.properties" = {
|
|
||||||
"default.clock.rate" = 48000;
|
|
||||||
"default.clock.quantum" = 144;
|
|
||||||
"default.clock.min-quantum" = 144;
|
|
||||||
"default.clock.max-quantum" = 144;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pipewire-pulse."92-low-latency" = {
|
## Low latency config
|
||||||
stream.properties = {
|
extraConfig = {
|
||||||
node.latency = "144/48000";
|
|
||||||
resample.quality = 1;
|
|
||||||
};
|
|
||||||
|
|
||||||
context.modules = [{
|
pipewire."92-low-latency" = {
|
||||||
name = "libpipewire-module-protocol-pulse";
|
"context.properties" = {
|
||||||
args = {
|
"default.clock.rate" = 48000;
|
||||||
pulse = {
|
"default.clock.quantum" = 150;
|
||||||
default.req = "144/48000";
|
"default.clock.min-quantum" = 150;
|
||||||
min.req = "144/48000";
|
"default.clock.max-quantum" = 150;
|
||||||
max.req = "144/48000";
|
|
||||||
min.quantum = "144/48000";
|
|
||||||
max.quantum = "144/48000";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}];
|
};
|
||||||
|
|
||||||
|
pipewire-pulse."92-low-latency" = {
|
||||||
|
stream.properties = {
|
||||||
|
node.latency = "150/48000";
|
||||||
|
resample.quality = 1;
|
||||||
|
};
|
||||||
|
|
||||||
|
context.modules = [{
|
||||||
|
name = "libpipewire-module-protocol-pulse";
|
||||||
|
args = {
|
||||||
|
pulse = {
|
||||||
|
default.req = "150/48000";
|
||||||
|
min.req = "150/48000";
|
||||||
|
max.req = "150/48000";
|
||||||
|
min.quantum = "150/48000";
|
||||||
|
max.quantum = "150/48000";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}];
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue