I have recently setup nixos with awesomewm where i have a component that controls sound via pacmd. However, the problem when trying to execute pacmd is that i haven’t been able to get it to work with Pipewire.
Here are my nix configs:
# Enable sound with pipewire.
sound.enable = false;
hardware.pulseaudio.enable = false;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;
};
systemd.user.services.pipewire-pulse.path = [ pkgs.pulseaudio ];
I know about alternatives such as amixer but i’d like to get pacmd to work as well. Since pipewire promises seemless pulseaudio emulation, i would expect this to make tools like pacmd to work.
What does pacmd expect in terms of configs to work with pipewire?