I’m trying to have NixOS implement this asound.conf
for a Traktor Audio 6: xwax - Tested Soundcards
I’m seeking instructions to use services.pipewire.extraConfig
to add the configuration in the aforementioned link: Traktor Audio 6 http://www.pogo.org.uk/~mark/linuxdj/t6.asoundrc
#
# asoundrc entries for Traktor Audio 6
# Carl Brothers <decibelkaos at gmail.com>
#
# These options will Enable/Disable the passthrough on your Traktor
# Audio 6. Personally, I just created shortcut buttons with the
# commands, and it works flawlessly.
#
# amixer -c T6 cset numid=1 on # switch PASSTHRU on channel A
# amixer -c T6 cset numid=2 on # switch PASSTHRU on channel B
# amixer -c T6 cset numid=3 on # switch PHONO/LINE on channel A
# amixer -c T6 cset numid=4 on # switch PHONO/LINE on channel B
pcm.T6_capture {
type dsnoop
ipc_key 1646
slave {
pcm "hw:T6"
period_size 0
buffer_size 65536
rate 44100
channels 6
}
}
pcm.T6_playback {
type dmix
ipc_key 1646
slave {
pcm "hw:T6"
period_size 0
buffer_size 65536
rate 44100
channels 6
}
}
pcm.T6_duplex {
type asym
playback.pcm T6_playback
capture.pcm T6_capture
}
pcm.T6_pair1 {
type plug
ttable.0.0 1.0
ttable.1.1 1.0
slave.pcm T6_duplex
}
pcm.T6_pair2 {
type plug
ttable.0.2 1.0
ttable.1.3 1.0
slave.pcm T6_duplex
}
pcm.T6_pair3 {
type plug
ttable.0.4 1.0
ttable.1.5 1.0
slave.pcm T6_duplex
}
This is my current config.nix for pipewire is:
# Enable sound with pipewire.
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
jack.enable = true;
What are the instructions to add this conf? Or, am I going about it the wrong way?