25 lines
602 B
Nix
Executable File
25 lines
602 B
Nix
Executable File
# PipeWire as the single audio server (ALSA, PulseAudio and JACK clients).
|
|
{ config, lib, ... }:
|
|
{
|
|
config = lib.mkIf config.my.desktop.hyprland.enable {
|
|
services = {
|
|
pipewire = {
|
|
enable = true;
|
|
alsa = {
|
|
enable = true;
|
|
# 32-bit ALSA clients: Wine/Proton games.
|
|
support32Bit = true;
|
|
};
|
|
pulse.enable = true;
|
|
jack.enable = true;
|
|
wireplumber.enable = true;
|
|
};
|
|
|
|
pulseaudio.enable = false;
|
|
};
|
|
|
|
# Lets PipeWire take realtime scheduling for low-latency audio.
|
|
security.rtkit.enable = true;
|
|
};
|
|
}
|