mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +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;
|
pulse.enable = true;
|
||||||
jack.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 {
|
(lib.mkIf cfg.fonts.enable {
|
||||||
|
Loading…
Reference in New Issue
Block a user