aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/common/optional/sound.nix
blob: 61ab23ff3330aa9cf8c9de34b570f15b2ae8caea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{ lib, 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
    ];

    variables = let makePluginPath = format:
      (lib.strings.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";
    };
  };
}