nixos-config/modules/pipewire.nix
Simon Bruder e99a45dba5
pipewire: Add support for Focusrite Scarlett Solo Gen 3
The headphone output of my Behringer UMC202HD had sporadic cutouts.
While short, they were quite annoying.

I hope this interface (which costs 50% more) will work better.
2023-06-08 20:11:00 +02:00

33 lines
784 B
Nix

{ config, lib, modulesPath, pkgs, ... }:
let
bluetoothSupport = config.sbruder.full;
in
lib.mkIf config.sbruder.gui.enable {
sound.enable = true;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
pulse.enable = true;
alsa = {
enable = true;
support32Bit = true;
};
};
environment.systemPackages = with pkgs; [
unstable.helvum # patch panel
pavucontrol
pulseaudio # pacmd and pactl
alsa-scarlett-gui # focusrite scarlett control
];
hardware.bluetooth.enable = lib.mkDefault bluetoothSupport;
services.blueman.enable = lib.mkDefault bluetoothSupport;
boot.extraModprobeConfig = ''
# Focusrite Scarlett Solo Gen 3 Mixer Driver
options snd_usb_audio vid=0x1235 pid=0x8211 device_setup=1
'';
}