JACK: Difference between revisions
imported>Artturin No edit summary |
imported>Moritzschaefer Add further option to get JACK working |
||
| Line 16: | Line 16: | ||
users.extraUsers.YOURUSER.extraGroups = [ "jackaudio" ]; | users.extraUsers.YOURUSER.extraGroups = [ "jackaudio" ]; | ||
</nowiki>}} | </nowiki>}} | ||
Since the config above and below apparently does not work for several users, according to forum posts, here a solution that works: | |||
- Add musnix channel (https://github.com/musnix/musnix) | |||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | |||
imports = [ <musnix> ]; | |||
environment.systemPackages = with pkgs; [ libjack2 jack2 qjackctl ]; | |||
environment.systemPackages = with pkgs; [ pavucontrol libjack2 jack2 qjackctl jack2Full jack_capture ]; | |||
security.sudo.extraConfig = '' | |||
moritz ALL=(ALL) NOPASSWD: ${pkgs.systemd}/bin/systemctl | |||
''; | |||
musnix = { | |||
enable = true; | |||
alsaSeq.enable = false; | |||
# Find this value with `lspci | grep -i audio` (per the musnix readme). | |||
# PITFALL: This is the id of the built-in soundcard. | |||
# When I start using the external one, change it. | |||
soundcardPciId = "00:1f.3"; | |||
# magic to me | |||
rtirq = { | |||
# highList = "snd_hrtimer"; | |||
resetAll = 1; | |||
prioLow = 0; | |||
enable = true; | |||
nameList = "rtc0 snd"; | |||
}; | |||
}; | |||
</nowiki>}} | |||
After a reboot, you can enable JACKD using "pasuspender qjackctl" and start jackd by pressing the start button. | |||
You can test, if your JACK works, using the command jack_simple_client, which produces a sound if JACK is running. | |||
Sources: | |||
https://discourse.nixos.org/t/declarative-audio-config-how-to-start-and-maybe-use-jack/5458 | |||
https://github.com/NixOS/nixpkgs/issues/71283 | |||
{{Outdated|needs cleanup}} | {{Outdated|needs cleanup}} | ||