{ lib, config, ... }: lib.mkIf (lib.elem "pipewire" config.machine.services) { security.rtkit.enable = true; services = { pulseaudio.enable = false; pipewire = { enable = true; wireplumber.enable = true; audio.enable = true; alsa.enable = true; pulse.enable = true; jack.enable = true; }; }; }