diff options
Diffstat (limited to 'hosts/common/optional/sound.nix')
-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"; + }; + }; } |