nixos/settings/audio.nix

39 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2025-12-03 15:51:00 +00:00
# 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;
2026-03-04 14:59:20 +00:00
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" ]; };
}
];
};
2026-03-04 15:00:18 +00:00
};
};
2025-12-03 15:51:00 +00:00
}