mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
profiles/system: configure limits for audio setup
This commit is contained in:
parent
1e18d8b6c7
commit
6a884de15a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user