Audio production: Difference between revisions

Make it more plugin type agnostic
m added clap to the snippet
 
(One intermediate revision by the same user not shown)
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
    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";
     };
      CLAP_PATH  = makePluginPath "clap";
</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.