From b326ed527c7229b1a08844f1f5fd968059fcae9f Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Fri, 3 Jan 2025 15:38:25 -0800 Subject: Add plugin paths to environment --- hosts/common/optional/sound.nix | 69 +++++++++++++++++++++++++---------------- 1 file changed, 43 insertions(+), 26 deletions(-) diff --git a/hosts/common/optional/sound.nix b/hosts/common/optional/sound.nix index 8e68a64..61a5490 100644 --- a/hosts/common/optional/sound.nix +++ b/hosts/common/optional/sound.nix @@ -1,29 +1,46 @@ { pkgs, ... }: { - environment.systemPackages = with pkgs; [ - bespokesynth - cardinal - fluidsynth - geonkick - lilypond-unstable-with-fonts - polyphone - qsynth - reaper - #master.rosegarden - samplv1 - sfizz - surge-XT - synthv1 - v4l-utils - vapoursynth - vmpk - vocproc - wavpack - winetricks - wineWowPackages.stagingFull - yabridge - yabridgectl - yoshimi - zynaddsubfx - ]; + environment = { + systemPackages = with pkgs; [ + bespokesynth + cardinal + fluidsynth + geonkick + lilypond-unstable-with-fonts + polyphone + qsynth + reaper + #master.rosegarden + samplv1 + sfizz + surge-XT + synthv1 + v4l-utils + vapoursynth + vmpk + vocproc + wavpack + winetricks + wineWowPackages.stagingFull + yabridge + yabridgectl + yoshimi + zynaddsubfx + ]; + + variables = let makePluginPath = format: + (lib.makeSearchPath format [ + "$HOME/.nix-profile/lib" + "/run/current-system/sw/lib" + "/etc/profiles/per-user/$USER/lib" + ]) + ":$HOME/.${format}"; + in { + DSSI_PATH = makePluginPath "dssi"; + LADSPA_PATH = makePluginPath "ladspa"; + LV2_PATH = makePluginPath "lv2"; + LXVST_PATH = makePluginPath "lxvst"; + VST_PATH = makePluginPath "vst"; + VST3_PATH = makePluginPath "vst3"; + }; + }; } -- cgit v1.2.3