2021-08-21 15:47:17 +02:00
|
|
|
{ config, lib, modulesPath, pkgs, ... }:
|
2021-07-10 12:44:09 +02:00
|
|
|
let
|
|
|
|
bluetoothSupport = config.sbruder.full;
|
|
|
|
in
|
|
|
|
lib.mkIf config.sbruder.gui.enable {
|
|
|
|
sound.enable = true;
|
2021-11-21 13:11:52 +01:00
|
|
|
security.rtkit.enable = true;
|
2021-07-10 12:44:09 +02:00
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
pulse.enable = true;
|
|
|
|
alsa = {
|
|
|
|
enable = true;
|
|
|
|
support32Bit = true;
|
|
|
|
};
|
2023-11-12 01:00:25 +01:00
|
|
|
jack.enable = true;
|
2021-11-08 18:04:14 +01:00
|
|
|
};
|
2021-08-21 15:47:17 +02:00
|
|
|
|
2021-07-10 12:44:09 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
2023-02-20 22:35:11 +01:00
|
|
|
unstable.helvum # patch panel
|
2021-07-10 12:44:09 +02:00
|
|
|
pavucontrol
|
|
|
|
pulseaudio # pacmd and pactl
|
2023-06-08 20:11:00 +02:00
|
|
|
alsa-scarlett-gui # focusrite scarlett control
|
2021-07-10 12:44:09 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
hardware.bluetooth.enable = lib.mkDefault bluetoothSupport;
|
|
|
|
services.blueman.enable = lib.mkDefault bluetoothSupport;
|
2023-06-08 20:11:00 +02:00
|
|
|
|
|
|
|
boot.extraModprobeConfig = ''
|
|
|
|
# Focusrite Scarlett Solo Gen 3 Mixer Driver
|
|
|
|
options snd_usb_audio vid=0x1235 pid=0x8211 device_setup=1
|
|
|
|
'';
|
2021-07-10 12:44:09 +02:00
|
|
|
}
|