nixos-configs/nixosModules/desktop/environment/modules/audio.nix
matt1432 20cd2a0611
All checks were successful
Discord / discord commits (push) Has been skipped
feat(audio): add combined-sink option
2024-09-10 21:47:50 -04:00

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;
}