diff options
author | Mark Nipper <nipsy@bitgnome.net> | 2025-01-03 15:38:25 -0800 |
---|---|---|
committer | Mark Nipper <nipsy@bitgnome.net> | 2025-01-03 15:38:25 -0800 |
commit | b326ed527c7229b1a08844f1f5fd968059fcae9f (patch) | |
tree | 8827d9d2f823dcf49619b4eca95423c3f06bf5bb /hosts/common | |
parent | c5728f8ad31af3468e1afede4114a3d020429b62 (diff) | |
download | nix-b326ed527c7229b1a08844f1f5fd968059fcae9f.tar nix-b326ed527c7229b1a08844f1f5fd968059fcae9f.tar.gz nix-b326ed527c7229b1a08844f1f5fd968059fcae9f.tar.bz2 nix-b326ed527c7229b1a08844f1f5fd968059fcae9f.tar.lz nix-b326ed527c7229b1a08844f1f5fd968059fcae9f.tar.xz nix-b326ed527c7229b1a08844f1f5fd968059fcae9f.tar.zst nix-b326ed527c7229b1a08844f1f5fd968059fcae9f.zip |
Add plugin paths to environment
Diffstat (limited to '')
-rw-r--r-- | hosts/common/optional/sound.nix | 69 |
1 files 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"; + }; + }; } |