alsa-ucm-conf: tweak package priority to ensure that other alsa files take precedence over the base configs

This commit is contained in:
2024-10-10 07:07:51 +00:00
parent 312fba89e4
commit 994bc941b7

View File

@@ -4,7 +4,12 @@ let
in
{
sane.programs.alsa-ucm-conf = {
packageUnwrapped = pkgs.alsa-ucm-conf;
packageUnwrapped = pkgs.alsa-ucm-conf.overrideAttrs (base: {
meta = (base.meta or {}) // {
# let the other alsa ucm packages override configs from this one
priority = ((base.meta or {}).priority or 10) + 20;
};
});
sandbox.enable = false; #< only provides $out/share/alsa
# alsa-lib package only looks in its $out/share/alsa to find runtime config data, by default.