nix-config/nixos/_mixins/services/pipewire.nix
2024-05-23 15:02:20 -04:00

23 lines
456 B
Nix

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