profiles/system: configure limits for audio setup

This commit is contained in:
Gabriel Arazas 2022-09-24 13:07:56 +08:00
parent 1e18d8b6c7
commit 6a884de15a

View File

@ -93,6 +93,22 @@ in {
pulse.enable = true;
jack.enable = true;
};
# This is based from https://jackaudio.org/faq/linux_rt_config.html.
security.pam.loginLimits = [
{
domain = "@audio";
type = "-";
item = "rtprio";
value = "95";
}
{
domain = "@audio";
type = "-";
item = "memlock";
value = "unlimited";
}
];
})
(lib.mkIf cfg.fonts.enable {