Audio-relevant sections of my nix config:

    pipewire = {
      enable = true;
      alsa.enable = true;
      alsa.support32Bit = true;
      pulse.enable = true;
      # If you want to use JACK applications, uncomment this
      jack.enable = true;
    };

    blueman.enable = true;
  sound.mediaKeys = {
    enable = true;
    volumeStep = "5%";
  };

  environment.systemPackages = with pkgs; [
     pkgs.pulseaudio
     pkgs.pavucontrol
     pkgs.xfce.xfce4-pulseaudio-plugin
     ....
  ];

  nixpkgs.config.pulseaudio = true;

  hardware.pulseaudio.enable = false;

I don’t know if this is due to pipewire or not, but this configuration gets my sound working fine and I can use the sound applet to change the volume. However, the media keys do not react and I can not change the volume nor play/pause/stop a song.

I’m using a Framework laptop with https://github.com/NixOS/nixos-hardware.git added, if that makes any difference.

Any help deeply appreciated.