Skip to content

Commit

Permalink
feat(wireplumber): disable unused sinks and card
Browse files Browse the repository at this point in the history
  • Loading branch information
workflow committed Jun 11, 2024
1 parent c05d8b4 commit 0d81033
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions system/audio.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;

wireplumber.extraConfig = {
# Enable Fancy Blueooth Codecs
"monitor.bluez.properties" = {
Expand All @@ -21,6 +22,60 @@
"bluez5.enable-hw-volume" = true;
"bluez5.roles" = [ "hsp_hs" "hsp_ag" "hfp_hf" "hfp_ag" ];
};

# Disable unused sinks and sources
"disable-unused-nodes" = {
"monitor.alsa.rules" = [
{
matches = [
{
"node.nick" = "HDMI / DisplayPort 1 Output";
}
];
actions = {
update-props = {
"node.disabled" = true;
};
};
}
{
matches = [
{
"node.nick" = "HDMI / DisplayPort 2 Output";
}
];
actions = {
update-props = {
"node.disabled" = true;
};
};
}
{
matches = [
{
"node.nick" = "HDMI / DisplayPort 3 Output";
}
];
actions = {
update-props = {
"node.disabled" = true;
};
};
}
{
matches = [
{
"device.nick" = "HDA NVidia";
}
];
actions = {
update-props = {
"device.disabled" = true;
};
};
}
];
};
};
};

Expand Down

0 comments on commit 0d81033

Please sign in to comment.