mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
37 lines
844 B
Nix
37 lines
844 B
Nix
{ ... }:
|
|
|
|
{
|
|
services.pulseaudio.enable = false;
|
|
security.rtkit.enable = true;
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
wireplumber.enable = true;
|
|
|
|
extraConfig.pipewire."92-quantum" = {
|
|
"context.properties" = {
|
|
"default.clock.rate" = 48000;
|
|
"default.clock.allowed-rates" = [ 48000 ];
|
|
"default.clock.quantum" = 1024;
|
|
"default.clock.min-quantum" = 1024;
|
|
"default.clock.max-quantum" = 1024;
|
|
};
|
|
};
|
|
};
|
|
|
|
services.pipewire.wireplumber.extraConfig."51-no-mic-monitor" = {
|
|
"monitor.alsa.rules" = [
|
|
{
|
|
matches = [{ "node.name" = "~alsa_input.*"; }];
|
|
actions = {
|
|
"update-props" = {
|
|
"stream.dont-remix" = true;
|
|
};
|
|
};
|
|
}
|
|
];
|
|
};
|
|
}
|