nix-config/nixos/_mixins/services/pipewire.nix

23 lines
432 B
Nix
Raw Normal View History

{ desktop, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
alsa-utils
pulseaudio
pulsemixer
] ++ lib.optionals (desktop != null) [
pavucontrol
];
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services = {
pipewire = {
enable = true;
alsa.enable = true;
jack.enable = true;
pulse.enable = true;
wireplumber.enable = true;
};
};
}