2024-05-04 23:15:57 +03:00
|
|
|
# Improve DE performance.
|
2024-06-25 04:04:39 +03:00
|
|
|
{ lib, config, ... }: with lib; let
|
2024-08-24 20:36:19 +03:00
|
|
|
cfg = config.module.realtime;
|
2024-06-25 04:04:39 +03:00
|
|
|
in {
|
|
|
|
options = {
|
2024-08-24 20:29:51 +03:00
|
|
|
module.realtime.enable = mkEnableOption "Realtime access.";
|
2024-06-25 04:04:39 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
security.pam.loginLimits = [
|
|
|
|
{ domain = "@users"; item = "rtprio"; type = "-"; value = 1; }
|
|
|
|
];
|
|
|
|
};
|
2024-03-28 12:01:06 +03:00
|
|
|
}
|