Files
dotfiles/config/modules/gameaudio.nix
T

27 lines
600 B
Nix

{
modules,
...
}:
{
modules.gameaudio = {
homeManager =
{
pkgs,
...
}:
{
home.packages = [
# Launch a program with all of its audio routed to GameAudioSink.
# Usage: run-on-gameaudio <command> [args...]
(pkgs.writeShellScriptBin "run-on-gameaudio" ''
if [ "$#" -eq 0 ]; then
echo "usage: run-on-gameaudio <command> [args...]" >&2
exit 1
fi
export PIPEWIRE_PROPS="target.object=GameAudioSink"
exec "$@"
'')
];
};
};
}