Skip to content

Commit

Permalink
steamdeck/sound: Link config files from steamdeck-dsp individually
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaofengli committed Nov 25, 2023
1 parent 199f94c commit 4af4862
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/steamdeck/sound.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ let
# remove more specific upstream symlink so Valve acp5x config is picked
rm $out/share/alsa/ucm2/conf.d/acp5x/Valve-Jupiter-1.conf
'';

mkDspEtc = path: {
name = path;
value.source = "${pkgs.steamdeck-dsp}/share/${path}";
};
in
{
options = {
Expand Down Expand Up @@ -44,8 +49,7 @@ in
wireplumber.package = pkgs.wireplumber-jovian;
};

environment.etc."pipewire/pipewire.conf.d".source = "${pkgs.steamdeck-dsp}/share/pipewire/pipewire.conf.d";
environment.etc."wireplumber".source = "${pkgs.steamdeck-dsp}/share/wireplumber";
environment.etc = builtins.listToAttrs (map mkDspEtc pkgs.steamdeck-dsp.passthru.filesInstalledToEtc);

environment.variables = extraEnv;

Expand Down

0 comments on commit 4af4862

Please sign in to comment.