Skip to content

Commit

Permalink
modules/sound: individually link asahi-audio configs to allow user me…
Browse files Browse the repository at this point in the history
…rging
  • Loading branch information
tpwrules committed Dec 24, 2023
1 parent cdd0f0a commit e379e87
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions apple-silicon-support/modules/sound/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
};

config = let
asahi-audio = pkgs.asahi-audio; # the asahi-audio we use

lsp-plugins = pkgs.lsp-plugins; # the lsp-plugins we use

lsp-plugins-is-patched = (lsp-plugins.overrideAttrs (old: {
Expand Down Expand Up @@ -49,14 +51,9 @@
services.udev.packages = [ pkgs.speakersafetyd ];

# set up enivronment so that asahi-audio and UCM configs are used
environment.etc.asahi-audio-pipewire = {
source = "${pkgs.asahi-audio}/share/pipewire";
target = "pipewire";
};
environment.etc.asahi-audio-wireplumber = {
source = "${pkgs.asahi-audio}/share/wireplumber";
target = "wireplumber";
};
environment.etc = builtins.listToAttrs (builtins.map
(f: { name = f; value = { source = "${asahi-audio}/share/${f}"; }; })
asahi-audio.providedConfigFiles);
environment.variables.ALSA_CONFIG_UCM2 = "${pkgs.alsa-ucm-conf-asahi}/share/alsa/ucm2";

# set up pipewire and wireplumber to use asahi-audio configs and plugins
Expand Down

0 comments on commit e379e87

Please sign in to comment.