nixos/settings/audio.nix
ediblerope 19a7efca82 audio: lower mic boost from 2.0 to 1.5
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-24 22:30:22 +01:00

38 lines
1.1 KiB
Nix

# audio.nix
{ config, pkgs, lib, ... }:
{
config = lib.mkIf (lib.elem config.networking.hostName [ "FredOS-Gaming" "FredOS-Macbook" ]) {
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
wireplumber.extraConfig."10-mic-boost" = {
"monitor.alsa.rules" = [{
matches = [{ "node.name" = "~alsa_input.*"; }];
actions.update-props."audio.volume" = 1.5;
}];
};
extraConfig."pipewire-pulse"."10-quirk-rules" = {
"pulse.rules" = [
{
matches = [ { "application.name" = "~Chromium.*"; } ];
actions = { quirks = [ "block-source-volume" ]; };
}
{
matches = [ { "application.name" = "~Electron.*"; } ];
actions = { quirks = [ "block-source-volume" ]; };
}
{
matches = [ { "application.name" = "~vesktop.*"; } ];
actions = { quirks = [ "block-source-volume" ]; };
}
];
};
};
};
}