65 lines
1.3 KiB
Nix
65 lines
1.3 KiB
Nix
{ pkgs, lib, ... }:
|
|
{
|
|
|
|
sound.enable = true;
|
|
security.rtkit.enable = true;
|
|
services.pipewire = {
|
|
enable = true;
|
|
audio.enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
systemWide = false;
|
|
jack.enable = true;
|
|
};
|
|
hardware.pulseaudio.enable = false;
|
|
|
|
environment.sessionVariables =
|
|
let
|
|
makePluginPath = format:
|
|
(lib.makeSearchPath format [
|
|
"$HOME/.nix-profile/lib"
|
|
"/run/current-system/sw/lib"
|
|
"/etc/profiles/per-user/$USER/lib"
|
|
])
|
|
+ ":$HOME/.${format}";
|
|
in
|
|
{
|
|
ALSOFT_DRIVERS = "pulse";
|
|
|
|
DSSI_PATH = makePluginPath "dssi";
|
|
LADSPA_PATH = makePluginPath "ladspa";
|
|
LV2_PATH = makePluginPath "lv2";
|
|
LXVST_PATH = makePluginPath "lxvst";
|
|
VST_PATH = makePluginPath "vst";
|
|
VST3_PATH = makePluginPath "vst3";
|
|
|
|
};
|
|
|
|
services.udev = {
|
|
extraRules = ''
|
|
KERNEL=="rtc0", GROUP="audio"
|
|
KERNEL=="hpet", GROUP="audio"
|
|
DEVPATH=="/devices/virtual/misc/cpu_dma_latency", OWNER="root", GROUP="audio", MODE="0660"
|
|
'';
|
|
};
|
|
environment.systemPackages = with pkgs; [
|
|
openal
|
|
pulseaudio
|
|
|
|
reaper
|
|
|
|
yabridge
|
|
yabridgectl
|
|
|
|
vital
|
|
odin2
|
|
surge
|
|
fire
|
|
decent-sampler
|
|
lsp-plugins
|
|
|
|
];
|
|
|
|
}
|