Files
nixos-conf/modules/nixos/audio.nix
T

36 lines
680 B
Nix

{
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
extraConfig.pipewire = {
"98-crackling-fix" = {
"context.properties" = {
"default.clock.quantum" = 2048;
"default.clock.min-quantum" = 256;
"default.clock.max-quantum" = 8192;
};
};
};
};
security.pam.loginLimits = [
{
domain = "@users";
item = "rtprio";
type = "-";
value = "95";
}
{
domain = "@users";
item = "memlock";
type = "-";
value = "unlimited";
}
];
}