Update audio.nix

This commit is contained in:
ediblerope 2026-01-10 19:45:37 +00:00 committed by GitHub
parent 849f84d885
commit 4889394efb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,6 +9,35 @@
alsa.enable = true; alsa.enable = true;
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
jack.enable = true; # Added for compatibility with more audio applications jack.enable = true;
# Enable audio monitoring for game capture
extraConfig.pipewire."92-low-latency" = {
context.properties = {
default.clock.rate = 48000;
default.clock.quantum = 1024;
default.clock.min-quantum = 512;
default.clock.max-quantum = 2048;
}; };
};
};
# Allow capturing audio from all applications
environment.etc."pipewire/pipewire.conf.d/99-steam-monitor.conf".text = ''
context.modules = [
{ name = libpipewire-module-loopback
args = {
node.description = "Steam Audio Monitor"
capture.props = {
media.class = "Audio/Sink"
audio.position = [ FL FR ]
}
playback.props = {
media.class = "Audio/Source"
audio.position = [ FL FR ]
}
}
}
]
'';
} }