54 lines
1 KiB
Nix
54 lines
1 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
lib.mkIf config.jalr.gui.enable {
|
|
hardware.pulseaudio.enable = false;
|
|
|
|
# FIXME
|
|
#hardware.pulseaudio.extraModules = [ pkgs.pulseaudio-modules-bt ];
|
|
|
|
services.pipewire = {
|
|
enable = true;
|
|
pulse = {
|
|
enable = true;
|
|
};
|
|
jack = {
|
|
enable = true;
|
|
};
|
|
alsa = {
|
|
enable = true;
|
|
support32Bit = true;
|
|
};
|
|
extraConfig.pipewire-pulse."10-snapcast-discover" = {
|
|
"context.modules" = [
|
|
{
|
|
name = "libpipewire-module-snapcast-discover";
|
|
args = {
|
|
stream.rules = [{
|
|
matches = [{
|
|
snapcast.ip = "~.*";
|
|
}];
|
|
actions = {
|
|
create-stream = { };
|
|
};
|
|
}];
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
pavucontrol
|
|
pulseaudio # pacmd and pactl
|
|
];
|
|
|
|
# required for ardour
|
|
security.pam.loginLimits = [
|
|
{
|
|
domain = "@audio";
|
|
item = "memlock";
|
|
type = "-";
|
|
value = "unlimited";
|
|
}
|
|
];
|
|
}
|