nix-config/nixos/_mixins/services/pipewire.nix
Greg Burd 86706b1fc7 wimpy-ified
inspired by wimpysworld nix-config
2023-09-25 14:05:07 -04:00

22 lines
432 B
Nix

{ 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;
};
};
}