2022-01-18 19:57:00 +00:00
|
|
|
{ ... }: {
|
2022-01-18 19:58:26 +00:00
|
|
|
services.pipewire = {
|
2022-01-18 19:57:00 +00:00
|
|
|
enable = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
jack.enable = true;
|
|
|
|
alsa.enable = true;
|
2022-04-09 11:22:14 +00:00
|
|
|
alsa.support32Bit = true;
|
2022-01-18 19:57:00 +00:00
|
|
|
};
|
2022-04-09 11:22:14 +00:00
|
|
|
security.rtkit.enable = true;
|
|
|
|
hardware.pulseaudio.enable = false;
|
2022-01-18 19:57:00 +00:00
|
|
|
xdg.portal = {
|
|
|
|
enable = true;
|
|
|
|
wlr.enable = true;
|
|
|
|
};
|
2022-04-09 11:22:14 +00:00
|
|
|
security.pam.loginLimits = [
|
|
|
|
{ domain = "@audio"; item = "memlock"; type = "-"; value = "unlimited"; }
|
|
|
|
{ domain = "@audio"; item = "rtprio"; type = "-"; value = "99"; }
|
|
|
|
{ domain = "@audio"; item = "nofile"; type = "soft"; value = "99999"; }
|
|
|
|
{ domain = "@audio"; item = "nofile"; type = "hard"; value = "99999"; }
|
|
|
|
];
|
2022-04-09 11:26:09 +00:00
|
|
|
services.pipewire.config.pipewire."context.properties"."default.clock.rate" = 384000;
|
|
|
|
services.pipewire.config.pipewire."context.properties"."default.clock.allowed-rates" = [
|
|
|
|
44100
|
|
|
|
48000
|
|
|
|
88200
|
|
|
|
96000
|
|
|
|
176400
|
|
|
|
192000
|
|
|
|
352800
|
|
|
|
384000
|
|
|
|
];
|
|
|
|
services.pipewire.config.pipewire."context.properties"."default.clock.quantum" = 8192;
|
2022-01-18 19:57:00 +00:00
|
|
|
}
|