29 lines
590 B
Nix
29 lines
590 B
Nix
self: {...}: let
|
|
inherit (self.inputs) nix-gaming;
|
|
in {
|
|
imports = [nix-gaming.nixosModules.pipewireLowLatency];
|
|
|
|
config = {
|
|
hardware.pulseaudio.enable = false;
|
|
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
jack.enable = true;
|
|
pulse.enable = true;
|
|
lowLatency.enable = true;
|
|
|
|
extraConfig.pipewire-pulse.combine-sink = {
|
|
"pulse.cmd" = [
|
|
{
|
|
cmd = "load-module";
|
|
args = "module-combine-sink";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
|
|
# For accurate stack trace
|
|
_file = ./audio.nix;
|
|
}
|