2024-05-04 23:15:57 +03:00
|
|
|
# Improve DE performance.
|
2024-10-11 23:27:07 +03:00
|
|
|
{
|
2024-11-04 04:37:29 +03:00
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
cfg = config.module.realtime;
|
|
|
|
in {
|
|
|
|
options.module.realtime.enable = lib.mkEnableOption "the realtime access.";
|
2024-06-25 04:04:39 +03:00
|
|
|
|
2024-11-04 04:37:29 +03:00
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
security.pam.loginLimits = [{
|
|
|
|
domain = "@users";
|
|
|
|
item = "rtprio";
|
|
|
|
type = "-";
|
|
|
|
value = 1;
|
|
|
|
}];
|
|
|
|
};
|
2024-03-28 12:01:06 +03:00
|
|
|
}
|