diff --git a/system/audio.nix b/system/audio.nix index b732fd5..2564eab 100644 --- a/system/audio.nix +++ b/system/audio.nix @@ -13,6 +13,7 @@ alsa.enable = true; alsa.support32Bit = true; pulse.enable = true; + wireplumber.extraConfig = { # Enable Fancy Blueooth Codecs "monitor.bluez.properties" = { @@ -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; + }; + }; + } + ]; + }; }; };