nixos-configs/nixosModules/desktop/environment/modules/audio.nix

30 lines
590 B
Nix
Raw Permalink Normal View History

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;
2024-09-10 21:47:50 -04:00
extraConfig.pipewire-pulse.combine-sink = {
"pulse.cmd" = [
{
cmd = "load-module";
args = "module-combine-sink";
}
];
};
};
};
# For accurate stack trace
_file = ./audio.nix;
}