added daw

This commit is contained in:
Julian Sutter 2025-04-26 20:15:03 -07:00
parent c837ce81ac
commit ff05f2c486

35
desktop/daw.nix Normal file
View file

@ -0,0 +1,35 @@
{ config, pkgs, ... }:
{
# Enable PipeWire (with JACK support for low-latency audio)
services.pipewire = {
enable = true;
audio.enable = true;
pulse.enable = true;
jack.enable = true;
alsa.enable = true;
};
# Real-time permissions for better audio performance
security.pam.loginLimits = [
{ domain = "@audio"; type = "soft"; item = "rtprio"; value = "95"; }
{ domain = "@audio"; type = "hard"; item = "rtprio"; value = "95"; }
{ domain = "@audio"; type = "soft"; item = "memlock"; value = "unlimited"; }
{ domain = "@audio"; type = "hard"; item = "memlock"; value = "unlimited"; }
];
users.groups.audio = {};
environment.systemPackages = with pkgs; [
bitwig-studio
helvum # easy audio patchbay
carla # host extra plugins, VST bridge
lsp-plugins # free high-quality effects
dragonfly-reverb
surge-xt # free wavetable synth
vital # free version if you want
];
# Optional: low-latency kernel (for extreme cases)
# boot.kernelPackages = pkgs.linuxPackages_lowlatency;
}