this post was submitted on 06 Jan 2024
1 points (100.0% liked)

Nix / NixOS

1765 readers
8 users here now

Main links

Videos

founded 1 year ago
MODERATORS
 

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.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here