Audio production: Difference between revisions
Lord-Valen (talk | contribs) Make it more plugin type agnostic |
De CH-latin1 (talk | contribs) m makeSearchPath -> lib.makeSearchPath, as it is from lib and the with lib; statement is missing. (found in musnix source) |
||
| Line 5: | Line 5: | ||
Due to NixOS not using FHS paths, many DAWs will not know where to look for VSTs and other plugins. Musnix fixes this; if you don't want to use it, you can solve this by setting | Due to NixOS not using FHS paths, many DAWs will not know where to look for VSTs and other plugins. Musnix fixes this; if you don't want to use it, you can solve this by setting | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix">environment.variables = let | ||
makePluginPath = format: | makePluginPath = format: | ||
(makeSearchPath format [ | (lib.makeSearchPath format [ | ||
"$HOME/.nix-profile/lib" | "$HOME/.nix-profile/lib" | ||
"/run/current-system/sw/lib" | "/run/current-system/sw/lib" | ||
| Line 21: | Line 20: | ||
VST_PATH = makePluginPath "vst"; | VST_PATH = makePluginPath "vst"; | ||
VST3_PATH = makePluginPath "vst3"; | VST3_PATH = makePluginPath "vst3"; | ||
}; | };</syntaxhighlight> | ||
</syntaxhighlight> | |||
Some programs may not support those and may require other means of setting VST paths. | Some programs may not support those and may require other means of setting VST paths. | ||