Files
nixos/modules/audio.nix
2026-09-26 02:14:34 +02:00

40 lines
914 B
Nix

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