mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Desktop/Multimedia] fix pipewire combined outputs
This commit is contained in:
parent
5d255ebcdc
commit
fd09456414
1 changed files with 35 additions and 8 deletions
|
|
@ -68,16 +68,43 @@ in {
|
||||||
["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]"
|
["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]"
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
"pipewire/pipewire-pulse.conf.d/combined-outputs.json".text = ''
|
"pipewire/pipewire.conf.d/combined-outputs.conf".text = ''
|
||||||
{
|
context.modules = [
|
||||||
"context.exec": [
|
{ name = libpipewire-module-combine-stream
|
||||||
{
|
args = {
|
||||||
"args": "load-module module-combine-sink sink_name=\"Sorties combinées\"",
|
combine.mode = sink
|
||||||
"path": "pactl"
|
node.name = "combine_sink"
|
||||||
|
node.description = "Sortie combinée"
|
||||||
|
combine.latency-compensate = true
|
||||||
|
combine.props = {
|
||||||
|
audio.position = [ FL FR ]
|
||||||
|
}
|
||||||
|
stream.props = {
|
||||||
|
}
|
||||||
|
stream.rules = [
|
||||||
|
{
|
||||||
|
matches = [
|
||||||
|
# any of the items in matches needs to match, if one does,
|
||||||
|
# actions are emited.
|
||||||
|
{
|
||||||
|
# all keys must match the value. ! negates. ~ starts regex.
|
||||||
|
#node.name = "~alsa_input.*"
|
||||||
|
media.class = "Audio/Sink"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
actions = {
|
||||||
|
create-stream = {
|
||||||
|
#combine.audio.position = [ FL FR ]
|
||||||
|
#audio.position = [ FL FR ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
|
||||||
}
|
}
|
||||||
'';
|
]
|
||||||
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
security.rtkit.enable = true; # Real-time support for pipewire
|
security.rtkit.enable = true; # Real-time support for pipewire
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue