{ pkgs, ... }: { services.pulseaudio.enable = false; security.rtkit.enable = true; services.pipewire = { enable = true; alsa.enable = true; alsa.support32Bit = true; pulse.enable = true; jack.enable = true; # disable automatic gain control for specific apps extraConfig.pipewire-pulse."10-block-source-volume.conf"."pulse.rules" = [ { matches = [ { "application.name" = "~Chromium.*"; } { "application.process.binary" = "Discord"; } { "application.process.binary" = "vesktop"; } # TODO: add element to this list ]; actions.quirks = [ "block-source-volume" ]; } ]; }; programs.nix-ld.libraries = [ pkgs.pipewire ]; # home-manager.users.djai.home.packages = with pkgs; [ # pavucontrol # qpwgraph # ]; users.users.djai.packages = with pkgs; [ pavucontrol qpwgraph ]; }