nixos/services/pipewire: switch to nix-gaming low latency
This commit is contained in:
parent
6af72ca39e
commit
82d7029260
1 changed files with 15 additions and 19 deletions
|
@ -1,22 +1,18 @@
|
||||||
{
|
{inputs, ...}: {
|
||||||
hardware.pulseaudio.enable = false;
|
imports = [
|
||||||
# rtkit is optional but recommended
|
inputs.nix-gaming.nixosModules.pipewireLowLatency
|
||||||
security.rtkit.enable = true;
|
];
|
||||||
services.pipewire = {
|
services = {
|
||||||
|
pulseaudio.enable = false;
|
||||||
|
pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
alsa.support32Bit = true;
|
alsa.support32Bit = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
# If you want to use JACK applications, uncomment this
|
jack.enable = true;
|
||||||
#jack.enable = true;
|
lowLatency.enable = true;
|
||||||
};
|
|
||||||
|
|
||||||
services.pipewire.extraConfig.pipewire."92-low-latency" = {
|
|
||||||
"context.properties" = {
|
|
||||||
"default.clock.rate" = 48000;
|
|
||||||
"default.clock.allowed-rates" = [48000];
|
|
||||||
"default.clock.quantum" = 2048;
|
|
||||||
"default.clock.min-quantum" = 1024;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
# rtkit is optional but recommended
|
||||||
|
security.rtkit.enable = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue