2025-12-03 15:51:00 +00:00
|
|
|
# audio.nix
|
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
{
|
2026-04-01 21:14:16 +01:00
|
|
|
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
|
|
|
|
2026-04-09 21:10:15 +01:00
|
|
|
wireplumber.extraConfig."10-mic-boost" = {
|
|
|
|
|
"monitor.alsa.rules" = [{
|
|
|
|
|
matches = [{ "node.name" = "~alsa_input.*"; }];
|
2026-04-24 22:30:22 +01:00
|
|
|
actions.update-props."audio.volume" = 1.5;
|
2026-04-09 21:10:15 +01:00
|
|
|
}];
|
|
|
|
|
};
|
|
|
|
|
|
2026-04-01 21:14:16 +01:00
|
|
|
extraConfig."pipewire-pulse"."10-quirk-rules" = {
|
|
|
|
|
"pulse.rules" = [
|
|
|
|
|
{
|
|
|
|
|
matches = [ { "application.name" = "~Chromium.*"; } ];
|
|
|
|
|
actions = { quirks = [ "block-source-volume" ]; };
|
|
|
|
|
}
|
2026-04-09 21:06:05 +01:00
|
|
|
{
|
|
|
|
|
matches = [ { "application.name" = "~Electron.*"; } ];
|
|
|
|
|
actions = { quirks = [ "block-source-volume" ]; };
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
matches = [ { "application.name" = "~vesktop.*"; } ];
|
|
|
|
|
actions = { quirks = [ "block-source-volume" ]; };
|
|
|
|
|
}
|
2026-04-01 21:14:16 +01:00
|
|
|
];
|
|
|
|
|
};
|
2026-03-04 15:00:18 +00:00
|
|
|
};
|
|
|
|
|
};
|
2025-12-03 15:51:00 +00:00
|
|
|
}
|