mv: use a function for audiocables
This commit is contained in:
1 parent
82ccfd08e4
commit
c7928a52a8
1 file changed
+18
-44
+18
-44
@@ -13,6 +13,17 @@ let
|
|||||||
};
|
};
|
||||||
text = builtins.readFile ./linkSinks.sh;
|
text = builtins.readFile ./linkSinks.sh;
|
||||||
};
|
};
|
||||||
|
nullSink = name: {
|
||||||
|
factory = "adapter";
|
||||||
|
args = {
|
||||||
|
"factory.name" = "support.null-audio-sink";
|
||||||
|
"node.name" = name;
|
||||||
|
"node.description" = name;
|
||||||
|
"media.class" = "Audio/Sink";
|
||||||
|
"audio.position" = "FL,FR";
|
||||||
|
"monitor.channel-volumes" = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.pulseaudio.enable = false;
|
services.pulseaudio.enable = false;
|
||||||
@@ -38,50 +49,12 @@ in
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
extraConfig.pipewire."91-virtual-sinks" = {
|
extraConfig.pipewire."91-virtual-sinks"."context.objects" = [
|
||||||
"context.objects" = [
|
(nullSink "game")
|
||||||
{
|
(nullSink "clementine")
|
||||||
factory = "adapter";
|
(nullSink "element")
|
||||||
args = {
|
(nullSink "combine")
|
||||||
"factory.name" = "support.null-audio-sink";
|
];
|
||||||
"node.name" = "game";
|
|
||||||
"node.description" = "game";
|
|
||||||
"media.class" = "Audio/Sink";
|
|
||||||
"audio.position" = "FL,FR";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
factory = "adapter";
|
|
||||||
args = {
|
|
||||||
"factory.name" = "support.null-audio-sink";
|
|
||||||
"node.name" = "clementine";
|
|
||||||
"node.description" = "clementine";
|
|
||||||
"media.class" = "Audio/Sink";
|
|
||||||
"audio.position" = "FL,FR";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
factory = "adapter";
|
|
||||||
args = {
|
|
||||||
"factory.name" = "support.null-audio-sink";
|
|
||||||
"node.name" = "element";
|
|
||||||
"node.description" = "element";
|
|
||||||
"media.class" = "Audio/Sink";
|
|
||||||
"audio.position" = "FL,FR";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
factory = "adapter";
|
|
||||||
args = {
|
|
||||||
"factory.name" = "support.null-audio-sink";
|
|
||||||
"node.name" = "combine";
|
|
||||||
"node.description" = "combine";
|
|
||||||
"media.class" = "Audio/Sink";
|
|
||||||
"audio.position" = "FL,FR";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
wireplumber.extraConfig."91-default-sink" = {
|
wireplumber.extraConfig."91-default-sink" = {
|
||||||
"wireplumber.settings" = {
|
"wireplumber.settings" = {
|
||||||
@@ -112,6 +85,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# TODO: switch to home manager
|
||||||
# home-manager.users.djai.home.packages = with pkgs; [
|
# home-manager.users.djai.home.packages = with pkgs; [
|
||||||
# pavucontrol
|
# pavucontrol
|
||||||
# qpwgraph
|
# qpwgraph
|
||||||
|
|||||||