From cdd3fcb1728059393334fe69345c120623a716a1 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Fri, 18 Jun 2021 15:28:27 +0200 Subject: audioProduction: init with musnix --- usecases/desktop/graphical/audio-production.nix | 66 +++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 usecases/desktop/graphical/audio-production.nix (limited to 'usecases') diff --git a/usecases/desktop/graphical/audio-production.nix b/usecases/desktop/graphical/audio-production.nix new file mode 100644 index 0000000..eabb36d --- /dev/null +++ b/usecases/desktop/graphical/audio-production.nix @@ -0,0 +1,66 @@ +inputs: + +{ config, pkgs, lib, ... }: + +{ + imports = [ + "${inputs.musnix}" + ]; + + musnix = { + enable = true; + kernel = { + optimize = true; + realtime = true; + latencytop = true; + }; + }; + + users.extraUsers.minijackson = { + packages = with pkgs.unstable; [ + latencytop + + jack2Full + qjackctl + patchage + a2jmidid + fluidsynth + qsynth + soundfont-fluid + qsampler + ardour + musescore + hydrogen + lmms + + # plugins + calf + fmsynth + zynaddsubfx + helm + distrho + yoshimi + infamousPlugins + carla + cadence + x42-plugins + x42-gmsynth + x42-avldrums + lsp-plugins + ninjas2 + noise-repellent + surge + ]; + extraGroups = [ "audio" ]; + }; + + # TODO: upstream adding user-specific packages + environment.variables = { + DSSI_PATH = lib.mkForce "$HOME/.dssi:$HOME/.nix-profile/lib/dssi:/run/current-system/sw/lib/dssi:/etc/profiles/per-user/$USER/lib/dssi"; + LADSPA_PATH = lib.mkForce "$HOME/.ladspa:$HOME/.nix-profile/lib/ladspa:/run/current-system/sw/lib/ladspa:/etc/profiles/per-user/$USER/lib/ladspa"; + LV2_PATH = lib.mkForce "$HOME/.lv2:$HOME/.nix-profile/lib/lv2:/run/current-system/sw/lib/lv2:/etc/profiles/per-user/$USER/lib/lv2"; + LXVST_PATH = lib.mkForce "$HOME/.lxvst:$HOME/.nix-profile/lib/lxvst:/run/current-system/sw/lib/lxvst:/etc/profiles/per-user/$USER/lib/lxvst"; + VST_PATH = lib.mkForce "$HOME/.vst:$HOME/.nix-profile/lib/vst:/run/current-system/sw/lib/vst:/etc/profiles/per-user/$USER/lib/vst"; + VST3_PATH = lib.mkForce "$HOME/.vst3:$HOME/.nix-profile/lib/vst3:/run/current-system/sw/lib/vst3:/etc/profiles/per-user/$USER/lib/vst3"; + }; +} -- cgit v1.2.3