60 lines
1.1 KiB
Nix
60 lines
1.1 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"
|
||
|
'';
|
||
|
};
|
||
|
environment.systemPackages = with pkgs; [
|
||
|
openal
|
||
|
pulseaudio
|
||
|
|
||
|
reaper
|
||
|
|
||
|
yabridge
|
||
|
yabridgectl
|
||
|
|
||
|
vital
|
||
|
odin2
|
||
|
surge
|
||
|
fire
|
||
|
|
||
|
];
|
||
|
|
||
|
}
|